diff --git a/Classes/Controller/ModuleController.php b/Classes/Controller/ModuleController.php index fcb6665..5c333d4 100644 --- a/Classes/Controller/ModuleController.php +++ b/Classes/Controller/ModuleController.php @@ -460,11 +460,11 @@ public function importUserGroupsAjaxAction(\Causal\IgLdapSsoAuth\Domain\Model\Co if (preg_match("`<([^$]*)>`", $fieldParent, $attribute)) { $fieldParent = $attribute[1]; - if (is_array($group[$fieldParent])) { - unset($group[$fieldParent]['count']); + if (is_array($ldapGroup[$fieldParent])) { + unset($ldapGroup[$fieldParent]['count']); $this->setParentGroup( - $group[$fieldParent], + $ldapGroup[$fieldParent], $fieldParent, $group['uid'], $pid,