diff options
Diffstat (limited to 'settings')
-rw-r--r-- | settings/ajax/togglegroups.php | 3 |
1 files changed, 0 insertions, 3 deletions
diff --git a/settings/ajax/togglegroups.php b/settings/ajax/togglegroups.php index 87b60e485bf..4d248408db0 100644 --- a/settings/ajax/togglegroups.php +++ b/settings/ajax/togglegroups.php @@ -60,9 +60,6 @@ if( OC_Group::inGroup( $username, $group )) { $error = $l->t("Unable to remove user from group %s", $group); $success = OC_Group::removeFromGroup( $username, $group ); $usersInGroup=OC_Group::usersInGroup($group); - if(count($usersInGroup) === 0) { - OC_Group::deleteGroup($group); - } } else{ $success = OC_Group::addToGroup( $username, $group ); |