- Fixed bug 4745: undefined warning in sess_read().
parent
6ec582fd9c
commit
6f80df7762
|
@ -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) {
|
|||
|
||||
}
|
||||
|
||||
?>
|
||||
?>
|
||||
|
|
Loading…
Reference in New Issue