[Kolab-devel] [issue295] Wrong handling of ldap_get_entries

Martin Konold kolab-issues at intevation.de
Fri Aug 13 08:01:25 CEST 2004


New submission from Martin Konold <martin.konold at erfrakon.de>:

When delegates are emtpy user.php shows the text "Array" in the UI. 
 
This is due to the fact that ldap_get_entries returns true even if no results 
are found, like this:  
  
echo $entries=ldap_get_entries(...);  
  
will print Array.  
  
You have to check for number of row in the Array like this:  
  
if($entries["count"]==0) return false;

----------
assignedto: steffen
messages: 1190
nosy: martin, steffen
priority: minor bug
status: unread
title: Wrong handling of ldap_get_entries
topic: web admin
________________________________________________
Kolab issue tracker <kolab-issues at intevation.de>
<https://intevation.de/roundup/kolab/issue295>
________________________________________________




More information about the devel mailing list