aboutsummaryrefslogtreecommitdiffstats
path: root/phpBB/includes/acp/acp_groups.php
diff options
context:
space:
mode:
authorerangamapa <erangamapa@gmail.com>2013-02-18 11:04:14 +0530
committerNils Adermann <naderman@naderman.de>2013-02-24 18:04:46 +0100
commitf8e184c54e85dc55a803b76a6ccefb769ef38e17 (patch)
tree1d06da4b4dcf8a1a14b15073dcf45043abe425bb /phpBB/includes/acp/acp_groups.php
parent639110766caf40235768d8eed992745a9ab294b0 (diff)
downloadforums-f8e184c54e85dc55a803b76a6ccefb769ef38e17.tar
forums-f8e184c54e85dc55a803b76a6ccefb769ef38e17.tar.gz
forums-f8e184c54e85dc55a803b76a6ccefb769ef38e17.tar.bz2
forums-f8e184c54e85dc55a803b76a6ccefb769ef38e17.tar.xz
forums-f8e184c54e85dc55a803b76a6ccefb769ef38e17.zip
[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
Diffstat (limited to 'phpBB/includes/acp/acp_groups.php')
-rw-r--r--phpBB/includes/acp/acp_groups.php6
1 files changed, 5 insertions, 1 deletions
diff --git a/phpBB/includes/acp/acp_groups.php b/phpBB/includes/acp/acp_groups.php
index 486616c33d..ec44f4fc0c 100644
--- a/phpBB/includes/acp/acp_groups.php
+++ b/phpBB/includes/acp/acp_groups.php
@@ -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 . '&amp;action=list&amp;g=' . $group_id), E_USER_WARNING);
+ }
case 'delete':
if (!$group_id)
{
@@ -795,4 +799,4 @@ class acp_groups
}
}
-?> \ No newline at end of file
+?>