From: fidian Date: Mon, 25 Jun 2001 16:20:57 +0000 (+0000) Subject: Prefs saved as a value of 0 were treated like empty strings. This caused X-Git-Url: https://vcs.fsf.org/?p=squirrelmail.git;a=commitdiff_plain;h=ed9f3a67e3668c232994f4a69c045e6f3b6eba72 Prefs saved as a value of 0 were treated like empty strings. This caused the alternating row colors setting to be messed up. Bug reported on May 12, 2001, by Marc Lucks. git-svn-id: https://svn.code.sf.net/p/squirrelmail/code/trunk/squirrelmail@1421 7612ce4b-ef26-0410-bec9-ea0150e637f0 --- diff --git a/functions/prefs.php b/functions/prefs.php index 72f3c445..0042efe7 100644 --- a/functions/prefs.php +++ b/functions/prefs.php @@ -105,7 +105,7 @@ cachePrefValues($data_dir, $username); if (isset($prefs_cache[$string]) && $prefs_cache[$string] == $set_to) return; - if ($set_to == '') { + if ($set_to === '') { removePref($data_dir, $username, $string); return; }