import_request_variables() is no longer valid with PHP 5.4.4 (or less?)
authorRoland Häder <roland@mxchange.org>
Tue, 3 Jul 2012 21:49:58 +0000 (21:49 +0000)
committerRoland Häder <roland@mxchange.org>
Tue, 3 Jul 2012 21:49:58 +0000 (21:49 +0000)
inc/config-global.php

index 038d1dec8b60a7349dd748f448cee60f4749fd88..56ae1735bdb53c62279d721f582761f561d55ac6 100644 (file)
@@ -53,8 +53,11 @@ if (function_exists('date_default_timezone_set')) {
 // CFG: ERROR_REPORTING
 error_reporting(E_ALL | E_STRICT);
 
-// CFG: REGISTER-GLOBALS
-@import_request_variables('');
+// Is the function there? (removed in PHP 5.4.x)
+if (function_exists('import_request_variables')) {
+       // CFG: REGISTER-GLOBALS
+       @import_request_variables('');
+} // END - if
 
 // Detect path (without 'inc') and fix windozer paths
 $path = str_replace("\\", '/', substr(dirname(__FILE__), 0, -3));