X-Git-Url: https://vcs.fsf.org/?p=squirrelmail.git;a=blobdiff_plain;f=functions%2Fdb_prefs.php;h=b0f38df7cdb169143c6e738f67c1ee5743df3c7e;hp=519f066ff2c1660fdab31704e872c6ebad60e1a7;hb=62337234c9e6c8bf70e864a148248fecc4c1eb1c;hpb=2deab9a3a3ae21dbeffb2ef0b12db1ae46adc560 diff --git a/functions/db_prefs.php b/functions/db_prefs.php index 519f066f..b0f38df7 100644 --- a/functions/db_prefs.php +++ b/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; + } } }