From: Roland Häder Date: Tue, 3 Jul 2012 21:49:58 +0000 (+0000) Subject: import_request_variables() is no longer valid with PHP 5.4.4 (or less?) X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=bc78f4e9fa9a786b6258537c6866106a77e09f54;p=mailer.git import_request_variables() is no longer valid with PHP 5.4.4 (or less?) --- diff --git a/inc/config-global.php b/inc/config-global.php index 038d1dec8b..56ae1735bd 100644 --- a/inc/config-global.php +++ b/inc/config-global.php @@ -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));