summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--modules/user/user.install2
1 files changed, 1 insertions, 1 deletions
diff --git a/modules/user/user.install b/modules/user/user.install
index 792901677..0ebf83d8c 100644
--- a/modules/user/user.install
+++ b/modules/user/user.install
@@ -671,7 +671,7 @@ function user_update_7012(&$sandbox) {
// Initialize batch update information.
$sandbox['progress'] = 0;
$sandbox['last_user_processed'] = -1;
- $sandbox['max'] = db_query("SELECT COUNT(*) FROM {users} WHERE picture <> ''")->fetchField();
+ $sandbox['max'] = db_query("SELECT COUNT(*) FROM {users} WHERE picture <> 0")->fetchField();
}
// As a batch operation move the photos into the {file_managed} table and