X-Git-Url: https://vcs.fsf.org/?p=squirrelmail.git;a=blobdiff_plain;f=functions%2Fprefs.php;h=b4b2d9db9366cf6de851a4a98b83ec17c6960c3e;hp=d14d46a13d15775c0346d4e38defd14640060131;hb=93b2364f4a322f031cadb1e3cfa6ab4a1242bed7;hpb=b1dde0de8f47755e8efb5554f6665edd670c763a diff --git a/functions/prefs.php b/functions/prefs.php index d14d46a1..b4b2d9db 100644 --- a/functions/prefs.php +++ b/functions/prefs.php @@ -12,7 +12,10 @@ */ global $prefs_are_cached, $prefs_cache; -if (!session_is_registered('prefs_are_cached')) { + +if ( !session_is_registered('prefs_are_cached') || + !isset( $prefs_cache) || + !is_array( prefs_cache) ) { $prefs_are_cached = false; $prefs_cache = array(); }