浏览代码

* Removed a warning

Tyler Akins 24 年之前
父节点
当前提交
4b3f400ffc
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      functions/prefs.php

+ 1 - 1
functions/prefs.php

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