From 7dd24bec5c65462a095fd5a011e75113aab3714c Mon Sep 17 00:00:00 2001 From: Dries Buytaert Date: Sat, 12 Nov 2005 09:14:30 +0000 Subject: - SQL query maintenance: '%d' -> %d. --- modules/user/user.module | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'modules/user/user.module') diff --git a/modules/user/user.module b/modules/user/user.module index 3319974ed..76d29ef02 100644 --- a/modules/user/user.module +++ b/modules/user/user.module @@ -851,7 +851,7 @@ function user_login($edit = array(), $msg = '') { watchdog('user', t('Session opened for %name.', array('%name' => theme('placeholder', $user->name)))); // Update the user table timestamp noting user has logged in. - db_query("UPDATE {users} SET login = '%d' WHERE uid = '%s'", time(), $user->uid); + db_query("UPDATE {users} SET login = %d WHERE uid = '%s'", time(), $user->uid); user_module_invoke('login', $edit, $user); @@ -1029,7 +1029,7 @@ function user_pass_reset($uid, $timestamp, $hashed_pass) { watchdog('user', t('One time login URL used for %name with timestamp %timestamp.', array('%name' => "$account->name", '%timestamp' => $timestamp))); // Update the user table noting user has logged in. // And this also makes this hashed password a one-time-only login. - db_query("UPDATE {users} SET login = '%d' WHERE uid = %d", time(), $account->uid); + db_query("UPDATE {users} SET login = %d WHERE uid = %d", time(), $account->uid); // Now we can set the new user. $user = $account; // And proceed with normal login, going to user page. -- cgit v1.2.3