Browse Source

fix in db_prefs

teepe 23 năm trước cách đây
mục cha
commit
1aaa02ada6
1 tập tin đã thay đổi với 5 bổ sung1 xóa
  1. 5 1
      functions/db_prefs.php

+ 5 - 1
functions/db_prefs.php

@@ -119,7 +119,11 @@ class dbPrefs {
         if (isset($prefs_cache[$key])) {
         if (isset($prefs_cache[$key])) {
             return $prefs_cache[$key];
             return $prefs_cache[$key];
         } else {
         } else {
-            return $default;
+            if (isset($this->default[$key])) {
+                return $this->default[$key];
+            } else {
+                return $default;
+            }
         }
         }
     }
     }