aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authormrgoldy <gijsmartens1@gmail.com>2019-09-07 16:47:47 +0200
committerMarc Alexander <admin@m-a-styles.de>2019-09-07 21:59:06 +0200
commit6e20cd5d2286e716dc6b9a9b3e7f9e75dcde4f8b (patch)
treeec8759869b3a62240922bb1aecd2859bed83beb3
parentcf898133a4fa0c412911a9b65a533c84524edc34 (diff)
downloadforums-6e20cd5d2286e716dc6b9a9b3e7f9e75dcde4f8b.tar
forums-6e20cd5d2286e716dc6b9a9b3e7f9e75dcde4f8b.tar.gz
forums-6e20cd5d2286e716dc6b9a9b3e7f9e75dcde4f8b.tar.bz2
forums-6e20cd5d2286e716dc6b9a9b3e7f9e75dcde4f8b.tar.xz
forums-6e20cd5d2286e716dc6b9a9b3e7f9e75dcde4f8b.zip
[ticket/16123] Remove redundant if check
PHPBB3-16123
-rw-r--r--phpBB/includes/functions_user.php8
1 files changed, 3 insertions, 5 deletions
diff --git a/phpBB/includes/functions_user.php b/phpBB/includes/functions_user.php
index 6e12c847c8..e0b6a9d0c6 100644
--- a/phpBB/includes/functions_user.php
+++ b/phpBB/includes/functions_user.php
@@ -1945,12 +1945,10 @@ function validate_user_email($email, $allowed_email = false)
return $validate_email;
}
- if (($ban = $user->check_ban(false, false, $email, true)) !== false)
+ $ban = $user->check_ban(false, false, $email, true);
+ if (!empty($ban))
{
- if (!empty($ban))
- {
- return !empty($ban['ban_give_reason']) ? $ban['ban_give_reason'] : 'EMAIL_BANNED';
- }
+ return !empty($ban['ban_give_reason']) ? $ban['ban_give_reason'] : 'EMAIL_BANNED';
}
if (!$config['allow_emailreuse'])