Prefs saved as a value of 0 were treated like empty strings. This caused
authorfidian <fidian@7612ce4b-ef26-0410-bec9-ea0150e637f0>
Mon, 25 Jun 2001 16:20:57 +0000 (16:20 +0000)
committerfidian <fidian@7612ce4b-ef26-0410-bec9-ea0150e637f0>
Mon, 25 Jun 2001 16:20:57 +0000 (16:20 +0000)
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

functions/prefs.php

index 72f3c44..0042efe 100644 (file)
       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;
       }