diff options
author | rxu <rxu@mail.ru> | 2012-03-22 21:19:01 +0800 |
---|---|---|
committer | rxu <rxu@mail.ru> | 2012-03-22 21:19:01 +0800 |
commit | 5a9dd1994fc20aaebe3145540b630826d7333998 (patch) | |
tree | 6ab5526c89efb81b60dbdc2e53620bfc61019dd4 /phpBB/includes/functions_user.php | |
parent | ff8d5237688beee9ea36848e1ac49565e538c2cd (diff) | |
download | forums-5a9dd1994fc20aaebe3145540b630826d7333998.tar forums-5a9dd1994fc20aaebe3145540b630826d7333998.tar.gz forums-5a9dd1994fc20aaebe3145540b630826d7333998.tar.bz2 forums-5a9dd1994fc20aaebe3145540b630826d7333998.tar.xz forums-5a9dd1994fc20aaebe3145540b630826d7333998.zip |
[ticket/10684] Adjust function and parameter name, minor changes.
PHPBB3-10684
Diffstat (limited to 'phpBB/includes/functions_user.php')
-rw-r--r-- | phpBB/includes/functions_user.php | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/phpBB/includes/functions_user.php b/phpBB/includes/functions_user.php index 8c42a5bb42..10fb57ea97 100644 --- a/phpBB/includes/functions_user.php +++ b/phpBB/includes/functions_user.php @@ -3588,24 +3588,24 @@ function remove_newly_registered($user_id, $user_data = false) } /** -* Get a list of banned users' ids, ignoring stale bans which were not cleaned yet. +* Gets user ids of currently banned registered users. * -* @param array $users_ids Array of users' ids to check for banning, +* @param array $user_ids Array of users' ids to check for banning, * leave empty to get complete list of banned ids * @return array Array of banned users' ids if any, empty array otherwise */ -function phpbb_get_banned_users_ids($users_ids = array()) +function phpbb_get_banned_user_ids($user_ids = array()) { global $db; - $sql_users_ids = (!empty($users_ids)) ? $db->sql_in_set('ban_userid', $users_ids) : 'ban_userid <> 0'; + $sql_user_ids = (!empty($user_ids)) ? $db->sql_in_set('ban_userid', $user_ids) : 'ban_userid <> 0'; // Get banned User ID's // Ignore stale bans which were not wiped yet $banned_ids_list = array(); $sql = 'SELECT ban_userid FROM ' . BANLIST_TABLE . " - WHERE $sql_users_ids + WHERE $sql_user_ids AND ban_exclude <> 1 AND (ban_end > " . time() . ' OR ban_end = 0)'; |