aboutsummaryrefslogtreecommitdiffstats
path: root/phpBB/phpbb/auth/provider/oauth
diff options
context:
space:
mode:
authormrgoldy <gijsmartens1@gmail.com>2019-04-02 17:25:00 +0200
committermrgoldy <gijsmartens1@gmail.com>2019-04-02 17:25:00 +0200
commitfc625387332c50bc92253a1822ad0607594af736 (patch)
tree1279307769fe9006c24b72e6a26174cfdbb2187b /phpBB/phpbb/auth/provider/oauth
parent68434e6dbc1b87f2bacb246b463d86ebc157473f (diff)
downloadforums-fc625387332c50bc92253a1822ad0607594af736.tar
forums-fc625387332c50bc92253a1822ad0607594af736.tar.gz
forums-fc625387332c50bc92253a1822ad0607594af736.tar.bz2
forums-fc625387332c50bc92253a1822ad0607594af736.tar.xz
forums-fc625387332c50bc92253a1822ad0607594af736.zip
[ticket/16007] No strict comparison against "false"
PHPBB3-16007
Diffstat (limited to 'phpBB/phpbb/auth/provider/oauth')
-rw-r--r--phpBB/phpbb/auth/provider/oauth/oauth.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/phpBB/phpbb/auth/provider/oauth/oauth.php b/phpBB/phpbb/auth/provider/oauth/oauth.php
index 28fa7a6be4..f3dfd07ae8 100644
--- a/phpBB/phpbb/auth/provider/oauth/oauth.php
+++ b/phpBB/phpbb/auth/provider/oauth/oauth.php
@@ -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';