diff --git a/main/inc/global.inc.php b/main/inc/global.inc.php index bcd3c7b143..6d60b87d77 100755 --- a/main/inc/global.inc.php +++ b/main/inc/global.inc.php @@ -251,7 +251,11 @@ if (api_get_setting('server_type') == 'test') { - only do addslashes on $_GET and $_POST -------------------------------------------- */ - error_reporting(E_ALL & ~E_NOTICE); + if (IS_PHP_53) { + error_reporting(E_ALL & ~E_NOTICE & ~E_DEPRECATED); + } else { + error_reporting(E_ALL & ~E_NOTICE); + } //error_reporting(E_ALL); //Addslashes to all $_GET variables