From 031920510d3f34191a88a9c9676d14016e91aa35 Mon Sep 17 00:00:00 2001 From: fidian Date: Thu, 20 Dec 2001 19:49:15 +0000 Subject: [PATCH] Warning (and probably a bug) removal. git-svn-id: https://svn.code.sf.net/p/squirrelmail/code/trunk/squirrelmail@1872 7612ce4b-ef26-0410-bec9-ea0150e637f0 --- functions/options.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/functions/options.php b/functions/options.php index e25f71d6..c9e6df18 100644 --- a/functions/options.php +++ b/functions/options.php @@ -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) { -- 2.25.1