X-Git-Url: https://vcs.fsf.org/?p=squirrelmail.git;a=blobdiff_plain;f=functions%2Foptions.php;h=d4aa8bc68d525e9be4b2c6d5dce8000a1cffca2c;hp=e25f71d622723e2071ec82f166105f905adf1062;hb=15e6162eacc97158393bc75aed3afeb7b19c24a6;hpb=2fad95fae22862b6488bfed2ec007419bc608cbe diff --git a/functions/options.php b/functions/options.php index e25f71d6..d4aa8bc6 100644 --- a/functions/options.php +++ b/functions/options.php @@ -3,7 +3,7 @@ /** * options.php * - * Copyright (c) 1999-2001 The SquirrelMail Development Team + * Copyright (c) 1999-2002 The SquirrelMail Project Team * Licensed under the GNU GPL. For full terms see the file COPYING. * * Functions needed to display the options pages. @@ -96,7 +96,7 @@ class SquirrelOption { } /* Set the default save function. */ - if ((type != SMOPT_TYPE_HIDDEN) && ($type != SMOPT_TYPE_COMMENT)) { + if (($type != SMOPT_TYPE_HIDDEN) && ($type != SMOPT_TYPE_COMMENT)) { $this->save_function = SMOPT_SAVE_DEFAULT; } else { $this->save_function = SMOPT_SAVE_NOOP; @@ -288,7 +288,7 @@ function save_option($option) { setPref($data_dir, $username, $option->name, $option->new_value); /* I do not know if this next line does any good. */ - $GLOBALS[$name] = $option->new_value; + $GLOBALS[$option->name] = $option->new_value; } function save_option_noop($option) {