"quiten warning, if search returns empty result"

This commit is contained in:
Ralf Becker 2009-11-29 10:56:17 +00:00
parent 5d734876a4
commit 0e08767e79

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