[Bug 615] Changed - ct_ldap.inc Undefined variable: id_ warnings

bugs@bugs.horde.org bugs@bugs.horde.org
Fri, 5 Apr 2002 14:13:34 -0400


http://bugs.horde.org/show_bug.cgi?id=615

*** shadow/615	Sat Feb 17 11:13:00 2001
--- shadow/615.tmp.16039	Fri Apr  5 14:13:34 2002
***************
*** 49,51 ****
--- 49,68 ----
  LDAP for session storage, but few (this bug makes me say, none) of the existing
  users are doing it this way.  I'd like to see it work, but I don't know when
  I'll get to this one.  People digging in a figuring it out would be welcome!
+ 
+ ------- Additional Comments From yuri@tsoft.com  04/05/02 14:13 -------
+ I got the same thing.
+ It's a bug with "$id_$name" occurances in the cr_ldap.inc.
+ Best fix -- to add function:
+ 
+ function ac_cnname($id, $name) {
+   return ($id."_".$name);
+ }
+ 
+ replece all those occurances with $this->ac_cnname($id, $name);
+ And than -- see additional warnings about "Undefined offset ...".
+ I will submit a separate PR.
+ 
+ Yuri,
+ yuri@tsoft.com
+