summaryrefslogtreecommitdiff
path: root/modules/user/user.install
diff options
context:
space:
mode:
authorDries Buytaert <dries@buytaert.net>2009-03-25 16:31:18 +0000
committerDries Buytaert <dries@buytaert.net>2009-03-25 16:31:18 +0000
commit7d35ed90d9b56e1055edd17398904c51fff2f57c (patch)
tree91d6aeb47f3be04bca48857fcb23e4652046d534 /modules/user/user.install
parentab8090c77c8a23987cc8fc8117b6143d437365c1 (diff)
downloadbrdo-7d35ed90d9b56e1055edd17398904c51fff2f57c.tar.gz
brdo-7d35ed90d9b56e1055edd17398904c51fff2f57c.tar.bz2
- Patch #413382 by brianV: whitespace fixes.
Diffstat (limited to 'modules/user/user.install')
-rw-r--r--modules/user/user.install14
1 files changed, 7 insertions, 7 deletions
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;