quiten a warning in _searchLDAP -> Invalid argument supplied for foreach()

This commit is contained in:
Klaus Leithoff 2010-02-03 13:05:22 +00:00
parent 43ca4795fd
commit cc69cd7ebe

View File

@ -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