diff options
author | Henry Sudhof <kellanved@phpbb.com> | 2007-06-20 14:24:02 +0000 |
---|---|---|
committer | Henry Sudhof <kellanved@phpbb.com> | 2007-06-20 14:24:02 +0000 |
commit | 59ee46e2a963492f53cc78189b5020536338986d (patch) | |
tree | 9f3767155ad934bbbf60de8ab8e08885484ad310 /phpBB/includes/session.php | |
parent | a0248584a6aaa2334ae54c2f145500b9b0a6d6a0 (diff) | |
download | forums-59ee46e2a963492f53cc78189b5020536338986d.tar forums-59ee46e2a963492f53cc78189b5020536338986d.tar.gz forums-59ee46e2a963492f53cc78189b5020536338986d.tar.bz2 forums-59ee46e2a963492f53cc78189b5020536338986d.tar.xz forums-59ee46e2a963492f53cc78189b5020536338986d.zip |
#12577
Don't allow users into bot mode to end the illusion of being able to log in as googlebot while keeping privileges (that really wasn't possible).
git-svn-id: file:///svn/phpbb/trunk@7785 89ea8834-ac86-4346-8a33-228a782c2dd0
Diffstat (limited to 'phpBB/includes/session.php')
-rw-r--r-- | phpBB/includes/session.php | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/phpBB/includes/session.php b/phpBB/includes/session.php index 29d364e89b..ec43c02bc9 100644 --- a/phpBB/includes/session.php +++ b/phpBB/includes/session.php @@ -414,6 +414,7 @@ class session $result = $db->sql_query($sql); $this->data = $db->sql_fetchrow($result); $db->sql_freeresult($result); + $bot = false; } else if ($user_id !== false && !sizeof($this->data)) { @@ -427,8 +428,9 @@ class session $result = $db->sql_query($sql); $this->data = $db->sql_fetchrow($result); $db->sql_freeresult($result); + $bot = false; } - + // If no data was returned one or more of the following occurred: // Key didn't match one in the DB // User does not exist |