From 17f3d2422eed920722102ad65c0c46ae0a126dba Mon Sep 17 00:00:00 2001 From: jangliss Date: Wed, 8 Mar 2006 19:57:24 +0000 Subject: [PATCH] - Issue loading options page always loaded the prefs initial_value on display, instead of the users' value. git-svn-id: https://svn.code.sf.net/p/squirrelmail/code/trunk/squirrelmail@10907 7612ce4b-ef26-0410-bec9-ea0150e637f0 --- ChangeLog | 3 ++- functions/options.php | 8 ++++---- 2 files changed, 6 insertions(+), 5 deletions(-) diff --git a/ChangeLog b/ChangeLog index 46b6240d..4e6db345 100644 --- a/ChangeLog +++ b/ChangeLog @@ -22,7 +22,8 @@ Version 1.5.2 - CVS - Added new color themes by Jeremy Landes, Tammi Maggard and Lucas Austin-Howe (#1378332), (#1377567), (#1377529), (#1377528), (#1377527), (#1377526), (#1377525), (#1393188). - + - Issue loading options page always loaded the prefs + initial_value on display, instead of the users' value. Version 1.5.1 (branched on 2006-02-12) -------------------------------------- diff --git a/functions/options.php b/functions/options.php index 8175f0bf..189f1f71 100644 --- a/functions/options.php +++ b/functions/options.php @@ -176,10 +176,10 @@ class SquirrelOption { $this->post_script = ''; /* Check for a current value. */ - if (!empty($initial_value)) { - $this->value = $initial_value; - } else if (isset($GLOBALS[$name])) { + if (isset($GLOBALS[$name])) { $this->value = $GLOBALS[$name]; + } else if (!empty($initial_value)) { + $this->value = $initial_value; } else { $this->value = ''; } @@ -734,4 +734,4 @@ function OptionSubmit( $name ) { } // vim: et ts=4 -?> \ No newline at end of file +?> -- 2.25.1