summaryrefslogtreecommitdiff
path: root/modules/user/user.module
diff options
context:
space:
mode:
authorDries Buytaert <dries@buytaert.net>2005-11-12 09:14:30 +0000
committerDries Buytaert <dries@buytaert.net>2005-11-12 09:14:30 +0000
commit7dd24bec5c65462a095fd5a011e75113aab3714c (patch)
treee0939056cc189fc85873c2ab4c06d5392555742c /modules/user/user.module
parentc2fcb6d5198f0bbec54787744eac0ed24ef9db96 (diff)
downloadbrdo-7dd24bec5c65462a095fd5a011e75113aab3714c.tar.gz
brdo-7dd24bec5c65462a095fd5a011e75113aab3714c.tar.bz2
- SQL query maintenance: '%d' -> %d.
Diffstat (limited to 'modules/user/user.module')
-rw-r--r--modules/user/user.module4
1 files changed, 2 insertions, 2 deletions
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' => "<em>$account->name</em>", '%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.