diff options
Diffstat (limited to 'phpBB/includes/ucp/ucp_groups.php')
| -rw-r--r-- | phpBB/includes/ucp/ucp_groups.php | 12 | 
1 files changed, 12 insertions, 0 deletions
diff --git a/phpBB/includes/ucp/ucp_groups.php b/phpBB/includes/ucp/ucp_groups.php index a4fc818343..d6e7a30176 100644 --- a/phpBB/includes/ucp/ucp_groups.php +++ b/phpBB/includes/ucp/ucp_groups.php @@ -127,6 +127,18 @@ class ucp_groups  							}  							list(, $row) = each($row); +							$sql = 'SELECT group_type +								FROM ' . GROUPS_TABLE . ' +								WHERE group_id = ' . $group_id; +							$result = $db->sql_query($sql); +							$group_type = (int) $db->sql_fetchfield('group_type'); +							$db->sql_freeresult($result); + +							if ($group_type != GROUP_OPEN && $group_type != GROUP_FREE) +							{ +								trigger_error($user->lang['CANNOT_RESIGN_GROUP'] . $return_page); +							} +  							if (confirm_box(true))  							{  								group_user_del($group_id, $user->data['user_id']);  | 
