Skip to content

Commit

Permalink
Merge pull request #2583 from KamuiXenom/5-4-LDAPQuery
Browse files Browse the repository at this point in the history
Fix Parameter must be an array or an counable object
  • Loading branch information
smeyer-ilias authored Mar 30, 2020
2 parents 9ed74ae + a06a385 commit ad3935a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Services/LDAP/classes/class.ilLDAPQuery.php
Original file line number Diff line number Diff line change
Expand Up @@ -384,8 +384,8 @@ private function fetchGroupMembers($a_name = '')

// All groups
foreach ($group_data as $data) {
$this->log->debug('Found ' . count($data[$attribute_name]) . ' group members for group ' . $data['dn']);
if (is_array($data[$attribute_name])) {
$this->log->debug('Found ' . count($data[$attribute_name]) . ' group members for group ' . $data['dn']);
foreach ($data[$attribute_name] as $name) {
$this->readUserData($name, true, true);
}
Expand Down

0 comments on commit ad3935a

Please sign in to comment.