From 7d35ed90d9b56e1055edd17398904c51fff2f57c Mon Sep 17 00:00:00 2001 From: Dries Buytaert Date: Wed, 25 Mar 2009 16:31:18 +0000 Subject: - Patch #413382 by brianV: whitespace fixes. --- modules/user/user.install | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) (limited to 'modules/user/user.install') diff --git a/modules/user/user.install b/modules/user/user.install index 11f4eb243..de002cf5e 100644 --- a/modules/user/user.install +++ b/modules/user/user.install @@ -257,13 +257,13 @@ function user_update_7000(&$sandbox) { $count = 1000; $result = db_query_range("SELECT uid, pass FROM {users} WHERE uid > 0 ORDER BY uid", $sandbox['user_from'], $count); while ($account = db_fetch_array($result)) { - $has_rows = TRUE; - $new_hash = user_hash_password($account['pass'], $hash_count_log2); - if ($new_hash) { - // Indicate an updated password. - $new_hash = 'U' . $new_hash; - db_query("UPDATE {users} SET pass = '%s' WHERE uid = %d", $new_hash, $account['uid']); - } + $has_rows = TRUE; + $new_hash = user_hash_password($account['pass'], $hash_count_log2); + if ($new_hash) { + // Indicate an updated password. + $new_hash = 'U' . $new_hash; + db_query("UPDATE {users} SET pass = '%s' WHERE uid = %d", $new_hash, $account['uid']); + } } $ret['#finished'] = $sandbox['user_from']/$sandbox['user_count']; $sandbox['user_from'] += $count; -- cgit v1.2.3