X-Git-Url: https://vcs.fsf.org/?a=blobdiff_plain;f=functions%2Foptions.php;h=7b60af67ea5b414d51ad394437ac07a85b677bf0;hb=991c88e71dc934df78cc7db33bceac29e0343c98;hp=8175f0bf5368bfed9d53d9a1fb759a1cae41ec0f;hpb=47ccfad452e8d345542d09e59112cac317cffed8;p=squirrelmail.git diff --git a/functions/options.php b/functions/options.php index 8175f0bf..7b60af67 100644 --- a/functions/options.php +++ b/functions/options.php @@ -175,11 +175,11 @@ class SquirrelOption { $this->script = ''; $this->post_script = ''; - /* Check for a current value. */ - if (!empty($initial_value)) { - $this->value = $initial_value; - } else if (isset($GLOBALS[$name])) { + //Check for a current value. + if (isset($GLOBALS[$name])) { $this->value = $GLOBALS[$name]; + } else if (!empty($initial_value)) { + $this->value = $initial_value; } else { $this->value = ''; } @@ -734,4 +734,3 @@ function OptionSubmit( $name ) { } // vim: et ts=4 -?> \ No newline at end of file