1
0
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:
battye 2019-01-04 15:49:15 +00:00
parent 565f692541
commit 3f19d32f76
3 changed files with 3 additions and 2 deletions

View File

@ -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')));

View File

@ -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)
{

View File

@ -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')));