From 134c9eb8878a814d6955e6471aa10f93302d20f8 Mon Sep 17 00:00:00 2001 From: Dries Buytaert Date: Fri, 22 Aug 2003 05:07:25 +0000 Subject: - Added some missing {} to make database prefixing work. Patch by Moshe. --- modules/user.module | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'modules/user.module') diff --git a/modules/user.module b/modules/user.module index ca65a9062..f8469639b 100644 --- a/modules/user.module +++ b/modules/user.module @@ -645,15 +645,15 @@ function user_login($edit = array(), $msg = "") { if ($user->uid) { // update the user's session if it already exists - db_query("UPDATE sessions SET timestamp = '%d' WHERE sid = '%s'", time(), session_id()); + db_query("UPDATE {sessions} SET timestamp = '%d' WHERE sid = '%s'", time(), session_id()); // if no changes, this is a new session to be added if (!db_affected_rows()) { - db_query("INSERT INTO sessions (uid, sid, hostname, timestamp) values(%d, '%s', '%s', %d)", $user->uid, session_id(), $_SERVER["REMOTE_ADDR"], time()); + db_query("INSERT INTO {sessions} (uid, sid, hostname, timestamp) values(%d, '%s', '%s', %d)", $user->uid, session_id(), $_SERVER["REMOTE_ADDR"], time()); } // also update the user table timestamp noting user has logged in - db_query("UPDATE users SET timestamp = '%d' WHERE uid = '%s'", time(), $user->uid); + db_query("UPDATE {users} SET timestamp = '%d' WHERE uid = '%s'", time(), $user->uid); } /* -- cgit v1.2.3