- Fixed bug 4745: undefined warning in sess_read().

4.4.x
Dries Buytaert 2004-01-11 20:03:36 +00:00
parent 6ec582fd9c
commit 6f80df7762
1 changed files with 2 additions and 2 deletions

View File

@ -21,7 +21,7 @@ function sess_read($key) {
if (!db_num_rows($result)) {
$result = db_query("SELECT u.*, r.name AS role FROM {users} u INNER JOIN {role} r ON u.rid = r.rid WHERE u.uid = 0");
db_query("INSERT INTO {sessions} (uid, sid, hostname, session, timestamp) values(%d, '%s', '%s', '%s', %d)", $user->uid, $key, $_SERVER["REMOTE_ADDR"], $value, time());
db_query("INSERT INTO {sessions} (uid, sid, hostname, timestamp) values(%d, '%s', '%s', %d)", $user->uid, $key, $_SERVER["REMOTE_ADDR"], time());
}
$user = db_fetch_object($result);
@ -63,4 +63,4 @@ function sess_gc($lifetime) {
}
?>
?>