mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-11-29 03:13:40 +01:00
quiten a warning in _searchLDAP -> Invalid argument supplied for foreach()
This commit is contained in:
parent
43ca4795fd
commit
cc69cd7ebe
@ -826,7 +826,7 @@ class addressbook_ldap
|
||||
|
||||
$entries = ldap_get_entries($this->ds, $result);
|
||||
$this->total = $entries['count'];
|
||||
foreach($entries as $i => $entry)
|
||||
foreach((array)$entries as $i => $entry)
|
||||
{
|
||||
if (!is_int($i)) continue; // eg. count
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user