diff options
author | mrgoldy <gijsmartens1@gmail.com> | 2019-09-05 16:36:29 +0200 |
---|---|---|
committer | Marc Alexander <admin@m-a-styles.de> | 2019-09-07 21:58:47 +0200 |
commit | 56e2f1a3f66602efa2977e5c2abe31e884e56bf6 (patch) | |
tree | 61886673dd954812f792324a7a86aa9f3f2221da | |
parent | 850ea776d9757e6cabc6a176b2071ca7471117a0 (diff) | |
download | forums-56e2f1a3f66602efa2977e5c2abe31e884e56bf6.tar forums-56e2f1a3f66602efa2977e5c2abe31e884e56bf6.tar.gz forums-56e2f1a3f66602efa2977e5c2abe31e884e56bf6.tar.bz2 forums-56e2f1a3f66602efa2977e5c2abe31e884e56bf6.tar.xz forums-56e2f1a3f66602efa2977e5c2abe31e884e56bf6.zip |
[ticket/16123] Check with empty()
PHPBB3-16123
-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 35fb54d7d3..6e12c847c8 100644 --- a/phpBB/includes/functions_user.php +++ b/phpBB/includes/functions_user.php @@ -1947,7 +1947,7 @@ function validate_user_email($email, $allowed_email = false) if (($ban = $user->check_ban(false, false, $email, true)) !== false) { - if ($ban !== false) + if (!empty($ban)) { return !empty($ban['ban_give_reason']) ? $ban['ban_give_reason'] : 'EMAIL_BANNED'; } |