[horde] LDAP Prefs + Horde 3.0 + IMP 4.0 Prob

Edwin Culp eculp at MexComUSA.Net
Fri May 24 19:06:13 PDT 2002


Quoting Jon Parise <jon at horde.org>:

| On Fri, May 24, 2002 at 05:24:28PM -0700, Edwin Culp wrote:
| 
| > | > http://kaalh.smol.org/horde/ldap.php.diff
| > | 
| > | Okay, I just committed a slightly modified version of this patch to
| > | the HEAD branch.  I would appreciate it if people would bang on this a
| > | bit before it gets merged into the release branch (not that what's
| > | already there is pretty broken at this point, anyway...).
| > 
| > With the new version I get:
| > 
| > Fatal error: Call to a member function on a non-object in
| > /usr/src/horde/lib/Registry.php on line 601
| > 
| > With KaalH's version it works perfectly.  
| 
| No idea.  I basically committed his version with some style fixes.
| Like I said, I don't have a test environment for this stuff any more,
| so someone else will have to investigate.

How about the following:

Index: ldap.php
===================================================================
RCS file: /repository/horde/lib/Prefs/ldap.php,v
retrieving revision 1.37
diff -u -r1.37 ldap.php
--- ldap.php    24 May 2002 21:11:14 -0000      1.37
+++ ldap.php    25 May 2002 02:01:25 -0000
@@ -435,7 +435,7 @@
          */
         $new_values = array();
         foreach($prefs as $pref) {
-            $entry = $pref . ':' . base64_encode(Prefs::getValue($pref)));
+            $entry = $pref . ':' . base64_encode(Prefs::getValue($pref));
             $field = $this->getScope($pref) . 'Prefs';
 
             $new_values[$field][] = $entry;

ed

-------------------------------------------------------------
 http://insourcery.com - Mergence of Business and Technology  
          a "Griffin Plaza Partners, LLC" Company


-------------------------------------------------------------
 http://insourcery.com - Mergence of Business and Technology  
          a "Griffin Plaza Partners, LLC" Company


More information about the horde mailing list