1
0
mirror of https://github.com/phpbb/phpbb.git synced 2025-07-31 05:50:42 +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

@@ -278,7 +278,7 @@ class oauth extends \phpbb\auth\provider\base
* token stored in the database.
*/
$ban = $this->user->check_ban($row['user_id'], $row['user_ip'], $row['user_email'], true);
if ($ban !== false)
if (!empty($ban))
{
$till_date = !empty($ban['ban_end']) ? $this->user->format_date($ban['ban_end']) : '';
$message = !empty($ban['ban_end']) ? 'BOARD_BAN_TIME' : 'BOARD_BAN_PERM';