aboutsummaryrefslogtreecommitdiffstats
path: root/phpBB/includes/functions_user.php
diff options
context:
space:
mode:
authorGraham Eames <grahamje@users.sourceforge.net>2006-07-21 20:44:27 +0000
committerGraham Eames <grahamje@users.sourceforge.net>2006-07-21 20:44:27 +0000
commit5879c1c5c1e7b0860a76a0fc62f62d171c2488f0 (patch)
tree48e5d744c3778af2042007731654a508819f84e1 /phpBB/includes/functions_user.php
parent73ac6b142375eaff4679a205a6bae537e4d019ac (diff)
downloadforums-5879c1c5c1e7b0860a76a0fc62f62d171c2488f0.tar
forums-5879c1c5c1e7b0860a76a0fc62f62d171c2488f0.tar.gz
forums-5879c1c5c1e7b0860a76a0fc62f62d171c2488f0.tar.bz2
forums-5879c1c5c1e7b0860a76a0fc62f62d171c2488f0.tar.xz
forums-5879c1c5c1e7b0860a76a0fc62f62d171c2488f0.zip
* Error handling on bans
* Missing language strings * Grammatical correction in viewtopic (singular vs plural) git-svn-id: file:///svn/phpbb/trunk@6199 89ea8834-ac86-4346-8a33-228a782c2dd0
Diffstat (limited to 'phpBB/includes/functions_user.php')
-rw-r--r--phpBB/includes/functions_user.php6
1 files changed, 6 insertions, 0 deletions
diff --git a/phpBB/includes/functions_user.php b/phpBB/includes/functions_user.php
index ead2834a5f..72383c1501 100644
--- a/phpBB/includes/functions_user.php
+++ b/phpBB/includes/functions_user.php
@@ -533,6 +533,12 @@ function user_ban($mode, $ban, $ban_len, $ban_len_other, $ban_exclude, $ban_reas
}
$sql_usernames = implode(', ', $sql_usernames);
+ // Make sure we have been given someone to ban
+ if (empty($sql_usernames))
+ {
+ trigger_error($user->lang['NO_USER_SPECIFIED']);
+ }
+
$sql = 'SELECT user_id
FROM ' . USERS_TABLE . '
WHERE username IN (' . $sql_usernames . ')';