Forráskód Böngészése

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 éve
szülő
commit
d173f102fd
1 módosított fájl, 1 hozzáadás és 1 törlés
  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;
       }