mirror of
https://github.com/humhub/humhub.git
synced 2025-01-18 22:58:06 +01:00
Fixed error when edit user without group assignment.
This commit is contained in:
parent
76b1eed6be
commit
371951df6b
@ -76,6 +76,8 @@ class UserEditForm extends \humhub\modules\user\models\User
|
||||
}
|
||||
}
|
||||
|
||||
$this->groupSelection = ($this->groupSelection == null) ? [] : $this->groupSelection;
|
||||
|
||||
//Add all new selectedGroups to the given user
|
||||
foreach ($this->groupSelection as $groupId) {
|
||||
if (!$this->isCurrentlyMemberOf($groupId)) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user