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

Use !empty rather than is_array

This picks up the case where the memberof attribute is an empty
array as well as not being an array
parent 0d462809
No related branches found
No related tags found
No related merge requests found
......@@ -263,7 +263,7 @@ class sspmod_ldap_Auth_Process_AttributeAddUsersGroups extends sspmod_ldap_Auth_
$groups[] = $dn;
// Recursively search "sub" groups
if (is_array($attributes[$map['memberof']])) {
if (!empty($attributes[$map['memberof']])) {
$groups = array_merge($groups, $this->search($attributes[$map['memberof']]));
}
}
......
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