Преглед на файлове

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