aboutsummaryrefslogtreecommitdiffstats
path: root/phpBB/includes/session.php
diff options
context:
space:
mode:
authorMeik Sievertsen <acydburn@phpbb.com>2007-11-04 12:07:46 +0000
committerMeik Sievertsen <acydburn@phpbb.com>2007-11-04 12:07:46 +0000
commit3989042217858c7bd2930b3d44f5e38d539711b1 (patch)
treee44ddfc75861e8f4b0699adac408439504ed9259 /phpBB/includes/session.php
parent18d014c7656717fe09aba0cafe2967eae7cea421 (diff)
downloadforums-3989042217858c7bd2930b3d44f5e38d539711b1.tar
forums-3989042217858c7bd2930b3d44f5e38d539711b1.tar.gz
forums-3989042217858c7bd2930b3d44f5e38d539711b1.tar.bz2
forums-3989042217858c7bd2930b3d44f5e38d539711b1.tar.xz
forums-3989042217858c7bd2930b3d44f5e38d539711b1.zip
try to add another fix for bans
git-svn-id: file:///svn/phpbb/trunk@8225 89ea8834-ac86-4346-8a33-228a782c2dd0
Diffstat (limited to 'phpBB/includes/session.php')
-rw-r--r--phpBB/includes/session.php3
1 files changed, 3 insertions, 0 deletions
diff --git a/phpBB/includes/session.php b/phpBB/includes/session.php
index 5ecb18a001..6149063dea 100644
--- a/phpBB/includes/session.php
+++ b/phpBB/includes/session.php
@@ -1064,6 +1064,9 @@ class session
$message .= ($ban_row['ban_give_reason']) ? '<br /><br />' . sprintf($this->lang['BOARD_BAN_REASON'], $ban_row['ban_give_reason']) : '';
$message .= '<br /><br /><em>' . $this->lang['BAN_TRIGGERED_BY_' . strtoupper($ban_triggered_by)] . '</em>';
+ // To circumvent session_begin returning a valid value and the check_ban() not called on second page view, we kill the session again
+ $this->session_kill(false);
+
trigger_error($message);
}