diff options
author | mrgoldy <gijsmartens1@gmail.com> | 2019-04-02 17:25:00 +0200 |
---|---|---|
committer | mrgoldy <gijsmartens1@gmail.com> | 2019-04-02 17:25:00 +0200 |
commit | fc625387332c50bc92253a1822ad0607594af736 (patch) | |
tree | 1279307769fe9006c24b72e6a26174cfdbb2187b /phpBB/includes/functions_user.php | |
parent | 68434e6dbc1b87f2bacb246b463d86ebc157473f (diff) | |
download | forums-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/includes/functions_user.php')
-rw-r--r-- | phpBB/includes/functions_user.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/phpBB/includes/functions_user.php b/phpBB/includes/functions_user.php index 5307623c8e..2cb50a5a34 100644 --- a/phpBB/includes/functions_user.php +++ b/phpBB/includes/functions_user.php @@ -1932,7 +1932,7 @@ function validate_user_email($email, $allowed_email = false) if (($ban = $user->check_ban(false, false, $email, true)) !== false) { - return !empty($ban['ban_give_reason']) ? $ban['ban_give_reason'] : 'EMAIL_BANNED'; + return ($ban === true) ? 'EMAIL_BANNED' : (!empty($ban['ban_give_reason']) ? $ban['ban_give_reason'] : $ban); } if (!$config['allow_emailreuse']) |