aboutsummaryrefslogtreecommitdiffstats
path: root/phpBB/includes/session.php
diff options
context:
space:
mode:
authorPaul S. Owen <psotfx@users.sourceforge.net>2003-03-20 00:33:25 +0000
committerPaul S. Owen <psotfx@users.sourceforge.net>2003-03-20 00:33:25 +0000
commitf9f6cb194dc51454402a463d0391a477d1a92bdf (patch)
tree2430cd31f34021de114abb18630de4c24660caa5 /phpBB/includes/session.php
parent507c67851489650fe891482d72f4024489a3b6b0 (diff)
downloadforums-f9f6cb194dc51454402a463d0391a477d1a92bdf.tar
forums-f9f6cb194dc51454402a463d0391a477d1a92bdf.tar.gz
forums-f9f6cb194dc51454402a463d0391a477d1a92bdf.tar.bz2
forums-f9f6cb194dc51454402a463d0391a477d1a92bdf.tar.xz
forums-f9f6cb194dc51454402a463d0391a477d1a92bdf.zip
Minor change
git-svn-id: file:///svn/phpbb/trunk@3685 89ea8834-ac86-4346-8a33-228a782c2dd0
Diffstat (limited to 'phpBB/includes/session.php')
-rw-r--r--phpBB/includes/session.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/phpBB/includes/session.php b/phpBB/includes/session.php
index d6fe8534c4..1a545dbf34 100644
--- a/phpBB/includes/session.php
+++ b/phpBB/includes/session.php
@@ -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));