Skip to content
Snippets Groups Projects
Commit 0d462809 authored by Vittal Aithal's avatar Vittal Aithal
Browse files

Prevent an assert by only calling a sub-search if needed

parent 7b75bdb4
No related branches found
No related tags found
No related merge requests found
......@@ -263,7 +263,9 @@ class sspmod_ldap_Auth_Process_AttributeAddUsersGroups extends sspmod_ldap_Auth_
$groups[] = $dn;
// Recursively search "sub" groups
$groups = array_merge($groups, $this->search($attributes[$map['memberof']]));
if (is_array($attributes[$map['memberof']])) {
$groups = array_merge($groups, $this->search($attributes[$map['memberof']]));
}
}
// Return only the unique group names
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment