[Tickets #12297] LDAP search failed - PHP errors

noreply at bugs.horde.org noreply at bugs.horde.org
Tue Jun 4 07:27:42 UTC 2013


BITTE NICHT AUF DIESE NACHRICHT ANTWORTEN. NACHRICHTEN AN DIESE  
E-MAIL-ADRESSE WERDEN NICHT GELESEN.

Ticket-URL: http://bugs.horde.org/ticket/12297
------------------------------------------------------------------------------
  Ticket           | 12297
  Erstellt Von     | frank.richter at hrz.tu-chemnitz.de
  Zusammenfassung  | LDAP search failed - PHP errors
  Warteschlange    | Turba
  Version          | 4.0.4
  Typ              | Bug
  Status           | Unconfirmed
  Priorität        | 2. Medium
  Milestone        |
  Patch            |
  Zuständige       |
------------------------------------------------------------------------------


frank.richter at hrz.tu-chemnitz.de (2013-06-04 07:27) hat geschrieben:

After upgrading to Turba 4.0.4 I get many lines in horde.log:
2013-06-04T08:11:58+02:00 WARN: HORDE [turba] PHP ERROR: Invalid  
argument supplied for foreach() [pid 30089 on line 495 of  
"/var/www/html/horde/turba/lib/Driver/Ldap.php"]
2013-06-04T08:11:58+02:00 WARN: HORDE [turba] PHP ERROR: Invalid  
argument supplied for foreach() [pid 30089 on line 505 of  
"/var/www/html/horde/turba/lib/Driver/Ldap.php"]

I traced it down to
/var/www/html/horde/turba/lib/Driver/Ldap.php:496
if (!empty($vals['OR']) || $key == 'OR') {

When $key is 0 (zero) the condition $key == 'OR' is true - strange IMHO!
I changed to $key === 'OR' - and everything is fine.

Regards,
Frank







More information about the bugs mailing list