mirror of
https://github.com/phpbb/phpbb.git
synced 2025-05-01 21:27:55 +02:00
[ticket/11355] Wrong error message when no user is selected.
In ACP group membership management, if you select 'remove member from group' without selecting any users and submit,it will display a wrong error after confirmbox. Since no users are selected, this should not go even until confirmbox. Added a new condition to check weather any users are selected when the action is 'deleteusers' in acp_groups.php and disply a correct error. PHPBB3-11355
This commit is contained in:
parent
639110766c
commit
f8e184c54e
@ -179,6 +179,10 @@ class acp_groups
|
||||
break;
|
||||
|
||||
case 'deleteusers':
|
||||
if (!$name_ary)
|
||||
{
|
||||
trigger_error($user->lang['NO_USERS'] . adm_back_link($this->u_action . '&action=list&g=' . $group_id), E_USER_WARNING);
|
||||
}
|
||||
case 'delete':
|
||||
if (!$group_id)
|
||||
{
|
||||
@ -795,4 +799,4 @@ class acp_groups
|
||||
}
|
||||
}
|
||||
|
||||
?>
|
||||
?>
|
||||
|
Loading…
x
Reference in New Issue
Block a user