Browse Source

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 năm trước cách đây
mục cha
commit
d173f102fd
1 tập tin đã thay đổi với 1 bổ sung1 xóa
  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;
       }