diff options
author | Andreas Fischer <bantu@phpbb.com> | 2009-06-15 11:19:19 +0000 |
---|---|---|
committer | Andreas Fischer <bantu@phpbb.com> | 2009-06-15 11:19:19 +0000 |
commit | 8c79920a55e2b803cc050ad662b7da73a08f6998 (patch) | |
tree | 0b118a0361674cc724795be6ba340e6f9a664de0 /phpBB/includes/functions_user.php | |
parent | f8f4b1373fb40bb069fe169426f921b649d1f46b (diff) | |
download | forums-8c79920a55e2b803cc050ad662b7da73a08f6998.tar forums-8c79920a55e2b803cc050ad662b7da73a08f6998.tar.gz forums-8c79920a55e2b803cc050ad662b7da73a08f6998.tar.bz2 forums-8c79920a55e2b803cc050ad662b7da73a08f6998.tar.xz forums-8c79920a55e2b803cc050ad662b7da73a08f6998.zip |
Fix bug #45585 - Show error if hostname lookup doesn't return a valid IP address when banning.
Authorised by: acydburn
git-svn-id: file:///svn/phpbb/branches/phpBB-3_0_0@9594 89ea8834-ac86-4346-8a33-228a782c2dd0
Diffstat (limited to 'phpBB/includes/functions_user.php')
-rw-r--r-- | phpBB/includes/functions_user.php | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/phpBB/includes/functions_user.php b/phpBB/includes/functions_user.php index 48fb532d00..ab0122866c 100644 --- a/phpBB/includes/functions_user.php +++ b/phpBB/includes/functions_user.php @@ -910,7 +910,8 @@ function user_ban($mode, $ban, $ban_len, $ban_len_other, $ban_exclude, $ban_reas } } } - else + + if (empty($banlist_ary)) { trigger_error('NO_IPS_DEFINED'); } |