/**
* 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.
}
/* 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;
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) {