[imp] saving sig_first pref doesn't seem to work

Jan Schneider jan@horde.org
Wed, 14 Nov 2001 15:46:48 +0100


Zitat von Martín Marqués <martin@bugs.unl.edu.ar>:

> On Mar 13 Nov 2001 16:05, you wrote:
> > Okay, I've figured out why it's doing it.
> >
> > If you "uncheck" sig_first, the table update (I'm using mysql)
> doesn't
> > set it to 0, it sets it to NULL.  I didn't dig the code deep enough
> to
> > figure out why it's not setting it to 0.
> >
> > Then, in horde/lib/Identity.php, under getValue, it has:
> >
> > function getValue($key, $identity = null)   {
> >    global $prefs;
> >    if (!isset($identity) || !isset($this->identities[$identity])) {
> >             $identity = $this->default;
> >         }
> >    ....
> >
> > Since the value is NULL, it's not set, so it gets the default, which
> > we had changed to 1 in our imp/config/prefs.php file.
> 
> Jan, did you check this out?

Yes, but that's not the reason. This code only checks if another identity 
than the default one should be used and if this identity actually exists.

Jan.

:::::::::::::::::::::::::::::::::::::::: 
AMMMa AG - discover your knowledge
:::::::::::::::::::::::::::
Detmolder Str. 25-33 :: D-33604 Bielefeld
fon +49.521.96878-0 :: fax  +49.521.96878-20
http://www.ammma.de
::::::::::::::::::::::::::::::::::::::::::::::