Explorar o código

fix in db_prefs

teepe %!s(int64=23) %!d(string=hai) anos
pai
achega
1aaa02ada6
Modificáronse 1 ficheiros con 5 adicións e 1 borrados
  1. 5 1
      functions/db_prefs.php

+ 5 - 1
functions/db_prefs.php

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