Просмотр исходного кода

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 лет назад
Родитель
Сommit
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;
       }