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

Nancy Lin nlin@newton.berkeley.edu
Tue, 13 Nov 2001 11:05:15 -0800 (PST)


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.

nancy

On Tue, 13 Nov 2001, Jan Schneider wrote:

> Zitat von Martín Marqués <martin@bugs.unl.edu.ar>:
> 
> > On Mar 13 Nov 2001 11:08, you wrote:
> > > I changed something in the identities code. Could you please update
> > and
> > > test if it works now?
> > 
> > Same result. :-(
> 
> Still? :-(
> I hope you use the head not the stable tree.
> 
> If no one who has the same problem is able to track this one down, I see no 
> chance for this being fixed.
> 
> 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
> ::::::::::::::::::::::::::::::::::::::::::::::
> 
>