summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDries Buytaert <dries@buytaert.net>2010-08-11 01:49:41 +0000
committerDries Buytaert <dries@buytaert.net>2010-08-11 01:49:41 +0000
commit3647670d40b6396869f80168bf6b9187ab476137 (patch)
treed0286b0f10bd43e4b66ab3dc71bd8f3f5ff9893e
parentf469a9082d4117044759a0c9209bc6259b4f8860 (diff)
downloadbrdo-3647670d40b6396869f80168bf6b9187ab476137.tar.gz
brdo-3647670d40b6396869f80168bf6b9187ab476137.tar.bz2
- Patch #870594 by marcingy, moshe weitzman, Josh Waihi: user_update_7004 fail during upgrade from Drupal 6 to 7.
-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