Tyler Akins 24 лет назад
Родитель
Сommit
4b3f400ffc
1 измененных файлов с 1 добавлено и 1 удалено
  1. 1 1
      functions/prefs.php

+ 1 - 1
functions/prefs.php

@@ -103,7 +103,7 @@
       global $prefs_cache;
       
       cachePrefValues($data_dir, $username);
-      if ($prefs_cache[$string] == $set_to)
+      if (isset($prefs_cache[$string]) && $prefs_cache[$string] == $set_to)
          return;
       if ($set_to == '') {
          removePref($data_dir, $username, $string);