[horde] Error on the login page while using a hook

Gilbert, Marie-Christine Marie-Christine.Gilbert at microcell.ca
Tue Oct 22 07:06:43 PDT 2002


Thanks a lot!

We are going to update the version from cvs.

Marie-Christine

>-----Original Message-----
>From: Chuck Hagenbuch [mailto:chuck at horde.org]
>Sent: October 18, 2002 10:04 PM
>To: horde at lists.horde.org
>Subject: Re: [horde] Error on the login page while using a hook
>
>
>Quoting "Gilbert, Marie-Christine" 
><Marie-Christine.Gilbert at microcell.ca>:
>
>> Finally, in the _setValue(Prefs.php) function we discovered that
>> "$this->_prefs[$pref]['val']" is called but it has not been 
>initialized
>> yet. We have added that little piece of code in the 
>_setValue(Prefs.php)
>> function to initialize the variable and it seems to work.
>
>We do seem to have been missing that, so I've added the check 
>to CVS. However:
>
>> 	  if (!array_key_exists($pref, $this->_prefs)) {
>> 		$this->_prefs[$pref]['val'] = $val;
>> 		$this->_prefs[$pref]['mask'] = 0;
>> 	  } else {
>>             if(($this->_prefs[$pref]['val'] == $val) &&
>> !$this->isDefault($pref)) {
>> 		    return true;
>> 	       }
>>         }
>
>This won't work; use what I committed. Also, that value _should_ have
>already been initialized, when setDefaults() was called, so 
>something else
>is going wrong somewhere - but I have no idea what it is.
>
>-chuck
>
>--
>Charles Hagenbuch, <chuck at horde.org>
>"People ask me all the time what it will be like living 
>without otters."
> - Google, thanks to Harpers
>
>-- 
>Horde mailing list
>Frequently Asked Questions: http://horde.org/faq/
>To unsubscribe, mail: horde-unsubscribe at lists.horde.org
>
>




More information about the horde mailing list