We don't support PHP 4.0.x anymore; update the docs to reflect that and
[squirrelmail.git] / functions / prefs.php
index 5876b86c04c03b527f66ca191275ee1b0c2c9fe0..112d7572abad1e0afe1e6a130b15a1e8f6a50a7a 100644 (file)
@@ -18,14 +18,9 @@ require_once(SM_PATH . 'functions/global.php');
 sqgetGlobalVar('prefs_cache', $prefs_cache, SQ_SESSION );
 sqgetGlobalVar('prefs_are_cached', $prefs_are_cached, SQ_SESSION );
 
-$rg = ini_get('register_globals');
-
-/* if php version >= 4.1 OR (4.0 AND $rg = off) */
 if ( !sqsession_is_registered('prefs_are_cached') ||
      !isset( $prefs_cache) ||
-     !is_array( $prefs_cache) ||
-     check_php_version(4,1) ||
-     empty($rg)
+     !is_array( $prefs_cache) 
    ) {
     $prefs_are_cached = false;
     $prefs_cache = array();