mirror of
https://github.com/phpbb/phpbb.git
synced 2025-01-31 13:48:04 +01:00
Minor change
git-svn-id: file:///svn/phpbb/trunk@3685 89ea8834-ac86-4346-8a33-228a782c2dd0
This commit is contained in:
parent
507c678514
commit
f9f6cb194d
@ -231,7 +231,7 @@ class session
|
||||
$sql = "UPDATE " . SESSIONS_TABLE . "
|
||||
SET session_user_id = $user_id, session_last_visit = " . $this->data['session_last_visit'] . ", session_start = $current_time, session_time = $current_time, session_browser = '$this->browser', session_page = '$this->page', session_allow_viewonline = $viewonline
|
||||
WHERE session_id = '" . $this->session_id . "'";
|
||||
if (!$db->sql_query($sql) || !$db->sql_affectedrows())
|
||||
if ($this->session_id == '' || !$db->sql_query($sql) || !$db->sql_affectedrows())
|
||||
{
|
||||
$db->sql_return_on_error(false);
|
||||
$this->session_id = md5(uniqid($user_ip));
|
||||
|
Loading…
x
Reference in New Issue
Block a user