ソースを参照

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.

Tyler Akins 24 年 前
コミット
d173f102fd
1 ファイル変更1 行追加1 行削除
  1. 1 1
      functions/prefs.php

+ 1 - 1
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;
       }