Issue Description
Edit a group and remove all users from the group - the users will be removed, but the group name now becomes a user with no groups in virtualgroups.conf...
in editGroupUsers function in admin.php the empty user list received will actually have 1 element, and that element will be empty... so I fixed it like this by adding under the if ($group && $users)...
if ($group && $users) {
if (count($users) == 1 && empty($users[0])) {
// If there are no users, remove the group.
$this->virtualGroups->removeGroup($group);
} else {
$this->virtualGroups->setGroupUsers($group, $users);
}
}
So if the user list is empty, we delete the group, but otherwise we do what this function is supposed to do.
Issue Description
Edit a group and remove all users from the group - the users will be removed, but the group name now becomes a user with no groups in virtualgroups.conf...
in editGroupUsers function in admin.php the empty user list received will actually have 1 element, and that element will be empty... so I fixed it like this by adding under the if ($group && $users)...
So if the user list is empty, we delete the group, but otherwise we do what this function is supposed to do.