From: simond Date: Fri, 26 Apr 2002 18:35:00 +0000 (+0000) Subject: Fix prefs so they work under 4.2 as well as 4.1.x. This really needs to X-Git-Url: https://vcs.fsf.org/?p=squirrelmail.git;a=commitdiff_plain;h=121fc1151c823887f339b19e3b84ddba477a5e44;ds=sidebyside Fix prefs so they work under 4.2 as well as 4.1.x. This really needs to be fixed properly sometime though! git-svn-id: https://svn.code.sf.net/p/squirrelmail/code/trunk/squirrelmail@2760 7612ce4b-ef26-0410-bec9-ea0150e637f0 --- diff --git a/functions/prefs.php b/functions/prefs.php index 67dbd445..047e1de6 100644 --- a/functions/prefs.php +++ b/functions/prefs.php @@ -16,7 +16,8 @@ global $prefs_are_cached, $prefs_cache; if ( !session_is_registered('prefs_are_cached') || !isset( $prefs_cache) || !is_array( $prefs_cache) || - substr( phpversion(), 0, 3 ) == '4.1' ) { + substr( phpversion(), 0, 3 ) == '4.1' || + substr( phpversion(), 0, 3 ) == '4.2' ) { $prefs_are_cached = false; $prefs_cache = array(); }