mirror of
https://github.com/phpbb/phpbb.git
synced 2025-07-30 21:40:43 +02:00
again... some more fixes.
git-svn-id: file:///svn/phpbb/trunk@7150 89ea8834-ac86-4346-8a33-228a782c2dd0
This commit is contained in:
@@ -915,6 +915,12 @@ class session
|
||||
|
||||
if ($banned && !$return)
|
||||
{
|
||||
// If the session is empty we need to create a valid one...
|
||||
if (empty($this->session_id))
|
||||
{
|
||||
$this->session_create(ANONYMOUS);
|
||||
}
|
||||
|
||||
// Initiate environment ... since it won't be set at this stage
|
||||
$this->setup();
|
||||
|
||||
@@ -941,6 +947,13 @@ class session
|
||||
$this->session_kill(false);
|
||||
}
|
||||
|
||||
// Ok, we catch the case of an empty session id for the anonymous user...
|
||||
// This can happen if the user is logging in, banned by username and the login_box() being called "again".
|
||||
if (empty($this->session_id))
|
||||
{
|
||||
$this->session_create(ANONYMOUS);
|
||||
}
|
||||
|
||||
// Determine which message to output
|
||||
$till_date = ($ban_row['ban_end']) ? $this->format_date($ban_row['ban_end']) : '';
|
||||
$message = ($ban_row['ban_end']) ? 'BOARD_BAN_TIME' : 'BOARD_BAN_PERM';
|
||||
|
Reference in New Issue
Block a user