aboutsummaryrefslogtreecommitdiffstats
path: root/phpBB/includes/sessions.php
diff options
context:
space:
mode:
authorPaul S. Owen <psotfx@users.sourceforge.net>2001-05-13 16:49:41 +0000
committerPaul S. Owen <psotfx@users.sourceforge.net>2001-05-13 16:49:41 +0000
commit557887b0d1648aa26217e4e414ce44dc1f07e8b2 (patch)
tree7f87e000917c0cb446eaf0fc1d10d6963ec2bac2 /phpBB/includes/sessions.php
parente3bd9660427c1cdfb5f906dbc34890ed6e2a5834 (diff)
downloadforums-557887b0d1648aa26217e4e414ce44dc1f07e8b2.tar
forums-557887b0d1648aa26217e4e414ce44dc1f07e8b2.tar.gz
forums-557887b0d1648aa26217e4e414ce44dc1f07e8b2.tar.bz2
forums-557887b0d1648aa26217e4e414ce44dc1f07e8b2.tar.xz
forums-557887b0d1648aa26217e4e414ce44dc1f07e8b2.zip
Various updates
git-svn-id: file:///svn/phpbb/trunk@282 89ea8834-ac86-4346-8a33-228a782c2dd0
Diffstat (limited to 'phpBB/includes/sessions.php')
-rw-r--r--phpBB/includes/sessions.php8
1 files changed, 4 insertions, 4 deletions
diff --git a/phpBB/includes/sessions.php b/phpBB/includes/sessions.php
index f1cb80518b..91d1f0fcea 100644
--- a/phpBB/includes/sessions.php
+++ b/phpBB/includes/sessions.php
@@ -85,8 +85,8 @@ function session_begin($user_id, $user_ip, $page_id, $session_length, $login = 0
if( ( $login || $autologin ) && $user_id != ANONYMOUS && $user_id != DELETED )
{
$sql_delete_same_user = "DELETE FROM ".SESSIONS_TABLE."
- WHERE session_user_id = $user_id
- AND session_ip <> '$int_ip'
+ WHERE session_ip <> '$int_ip'
+ AND session_user_id = $user_id
AND session_logged_in = 1";
$result = $db->sql_query($sql_delete_same_user);
}
@@ -421,8 +421,8 @@ function session_end($session_id, $user_id)
$sql = "UPDATE ".SESSIONS_TABLE."
SET session_logged_in = 0, session_user_id = -1, session_time = $current_time
- WHERE (session_user_id = $user_id)
- AND (session_id = '$session_id')";
+ WHERE (session_id = '$session_id')
+ AND (session_user_id = $user_id)";
$result = $db->sql_query($sql, $db);
if (!$result)
{