mirror of
https://github.com/phpbb/phpbb.git
synced 2025-04-12 20:02:08 +02:00
[ticket/15883] Review changes
PHPBB3-15883
This commit is contained in:
parent
565f692541
commit
3f19d32f76
@ -302,7 +302,7 @@ class acp_groups
|
||||
{
|
||||
// Find which users don't exist
|
||||
$actual_name_ary = $name_ary;
|
||||
$actual_user_id_ary = false;
|
||||
$actual_user_id_ary = [];
|
||||
user_get_id_name($actual_user_id_ary, $actual_name_ary, false, true);
|
||||
|
||||
$display_message = $language->lang('GROUP_USERS_INVALID', implode($language->lang('COMMA_SEPARATOR'), array_udiff($name_ary, $actual_name_ary, 'strcasecmp')));
|
||||
|
@ -27,6 +27,7 @@ if (!defined('IN_PHPBB'))
|
||||
* @param array &$username_ary The usernames to check or empty if user ids used
|
||||
* @param mixed $user_type Array of user types to check, false if not restricting by user type
|
||||
* @param bool $update_references If false, the supplied array is unset and appears unchanged from where it was called
|
||||
* @return null
|
||||
*/
|
||||
function user_get_id_name(&$user_id_ary, &$username_ary, $user_type = false, $update_references = false)
|
||||
{
|
||||
|
@ -1068,7 +1068,7 @@ class ucp_groups
|
||||
{
|
||||
// Find which users don't exist
|
||||
$actual_name_ary = $name_ary;
|
||||
$actual_user_id_ary = false;
|
||||
$actual_user_id_ary = [];
|
||||
user_get_id_name($actual_user_id_ary, $actual_name_ary, false, true);
|
||||
|
||||
$display_message = $language->lang('GROUP_USERS_INVALID', implode($language->lang('COMMA_SEPARATOR'), array_udiff($name_ary, $actual_name_ary, 'strcasecmp')));
|
||||
|
Loading…
x
Reference in New Issue
Block a user