aboutsummaryrefslogtreecommitdiffstats
path: root/phpBB/includes
diff options
context:
space:
mode:
authorTristan Darricau <github@nicofuma.fr>2014-10-28 10:14:47 +0100
committerTristan Darricau <github@nicofuma.fr>2014-10-28 12:19:53 +0100
commitfcc320e3852215a11b863d0108e16e2be998d5cc (patch)
tree720e10f6a3d06a798f1999550f3bee1cf9577d44 /phpBB/includes
parent64d97d0787a63b3c646f89237574ac566ed89c50 (diff)
downloadforums-fcc320e3852215a11b863d0108e16e2be998d5cc.tar
forums-fcc320e3852215a11b863d0108e16e2be998d5cc.tar.gz
forums-fcc320e3852215a11b863d0108e16e2be998d5cc.tar.bz2
forums-fcc320e3852215a11b863d0108e16e2be998d5cc.tar.xz
forums-fcc320e3852215a11b863d0108e16e2be998d5cc.zip
[ticket/13234] Fix conditions and CS
PHPBB3-13234
Diffstat (limited to 'phpBB/includes')
-rw-r--r--phpBB/includes/session.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/phpBB/includes/session.php b/phpBB/includes/session.php
index fcc6745021..5b2c4f0b0d 100644
--- a/phpBB/includes/session.php
+++ b/phpBB/includes/session.php
@@ -558,7 +558,7 @@ class session
{
$user_data = $method();
- if ($user_id === false || (isset($user_data['user_id']) && $user_id = $user_data['user_id']))
+ if ($user_id === false || (isset($user_data['user_id']) && $user_id == $user_data['user_id']))
{
$this->data = $user_data;
}
@@ -583,7 +583,7 @@ class session
$result = $db->sql_query($sql);
$user_data = $db->sql_fetchrow($result);
- if ($user_id === false || (isset($user_data['user_id']) && $user_id = $user_data['user_id']))
+ if ($user_id === false || (isset($user_data['user_id']) && $user_id == $user_data['user_id']))
{
$this->data = $user_data;
$bot = false;