Fixed error when edit user without group assignment.

This commit is contained in:
buddha87 2016-07-12 17:29:19 +02:00
parent 76b1eed6be
commit 371951df6b

View File

@ -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)) {