1
0
mirror of https://github.com/phpbb/phpbb.git synced 2025-07-31 22:10:45 +02:00

[ticket/16007] No strict comparison against "false"

PHPBB3-16007
This commit is contained in:
mrgoldy
2019-04-02 17:25:00 +02:00
parent 68434e6dbc
commit fc62538733
3 changed files with 7 additions and 4 deletions

View File

@@ -1234,8 +1234,6 @@ class session
$vars = array('return', 'banned', 'ban_row', 'ban_triggered_by');
extract($phpbb_dispatcher->trigger_event('core.session_set_custom_ban', compact($vars)));
$ban_row['ban_triggered_by'] = $ban_triggered_by;
if ($banned && !$return)
{
global $phpbb_root_path, $phpEx;
@@ -1301,6 +1299,11 @@ class session
trigger_error($message);
}
if (!empty($ban_row))
{
$ban_row['ban_triggered_by'] = $ban_triggered_by;
}
return ($banned && $ban_row) ? $ban_row : $banned;
}