Commit 3647670d authored by Dries's avatar Dries

- Patch #870594 by marcingy, moshe weitzman, Josh Waihi: user_update_7004 fail...

- Patch #870594 by marcingy, moshe weitzman, Josh Waihi: user_update_7004 fail during upgrade from Drupal 6 to 7.
parent f469a908
......@@ -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
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment