fix in db_prefs
authorteepe <teepe@7612ce4b-ef26-0410-bec9-ea0150e637f0>
Fri, 25 Jan 2002 16:46:36 +0000 (16:46 +0000)
committerteepe <teepe@7612ce4b-ef26-0410-bec9-ea0150e637f0>
Fri, 25 Jan 2002 16:46:36 +0000 (16:46 +0000)
git-svn-id: https://svn.code.sf.net/p/squirrelmail/code/trunk/squirrelmail@2238 7612ce4b-ef26-0410-bec9-ea0150e637f0

functions/db_prefs.php

index 519f066..b0f38df 100644 (file)
@@ -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;
+            }
         }
     }