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 72f3c445995c126c0f5f76e69b1b88d4277477fb..0042efe7ae7c1d63145c4543fb9a701c32a838f6 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;
       }