diff options
| author | erangamapa <erangamapa@gmail.com> | 2013-02-18 11:17:27 +0530 |
|---|---|---|
| committer | Nils Adermann <naderman@naderman.de> | 2013-02-24 18:12:28 +0100 |
| commit | 373c9a3f4ea92f1bcbe63404a2b3bf356fe5abcb (patch) | |
| tree | 9f3318d95ef5894e11e88fd668bb67d5efc8e0e5 /phpBB | |
| parent | 65118218c75d92beaee299985bdf003cb62628e9 (diff) | |
| download | forums-373c9a3f4ea92f1bcbe63404a2b3bf356fe5abcb.tar forums-373c9a3f4ea92f1bcbe63404a2b3bf356fe5abcb.tar.gz forums-373c9a3f4ea92f1bcbe63404a2b3bf356fe5abcb.tar.bz2 forums-373c9a3f4ea92f1bcbe63404a2b3bf356fe5abcb.tar.xz forums-373c9a3f4ea92f1bcbe63404a2b3bf356fe5abcb.zip | |
[ticket/11358] Success message even without selecting a user.
In group membership management, if you perform the action
'Make group default for member' without selecting any user,
a confirm box will be displayed and will show a success
message after confirming. Added a new condition to fix this
issue in acp_groups.php. It will check weather any users are
selected before performing above action.
PHPBB3-11358
Diffstat (limited to 'phpBB')
| -rw-r--r-- | phpBB/includes/acp/acp_groups.php | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/phpBB/includes/acp/acp_groups.php b/phpBB/includes/acp/acp_groups.php index bbe85f8038..dbe692aee0 100644 --- a/phpBB/includes/acp/acp_groups.php +++ b/phpBB/includes/acp/acp_groups.php @@ -120,6 +120,10 @@ class acp_groups { trigger_error($user->lang['NO_GROUP'] . adm_back_link($this->u_action), E_USER_WARNING); } + else if (!$name_ary) + { + trigger_error($user->lang['NO_USERS'] . adm_back_link($this->u_action . '&action=list&g=' . $group_id), E_USER_WARNING); + } if (confirm_box(true)) { |
