Commit 79cdc915 authored by Dries's avatar Dries
Browse files

- Modified patch #44156 by Zen: '%s' -> %d.

parent 67778c89
......@@ -888,7 +888,7 @@ function user_login_submit($form_id, $form_values) {
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 = %d", time(), $user->uid);
user_module_invoke('login', $form_values, $user);
......
......@@ -888,7 +888,7 @@ function user_login_submit($form_id, $form_values) {
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 = %d", time(), $user->uid);
user_module_invoke('login', $form_values, $user);
......
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