diff --git a/htdocs/filefunc.inc.php b/htdocs/filefunc.inc.php index 71a93240d34..9d482017f29 100755 --- a/htdocs/filefunc.inc.php +++ b/htdocs/filefunc.inc.php @@ -54,6 +54,7 @@ if (! defined('LOG_DEBUG')) } // Force PHP error_reporting setup (Dolibarr may report warning without this) +if (! defined('E_DEPRECATED')) define('E_DEPRECATED',0); // For PHP < 5.3.0 compatibility error_reporting(E_ALL & ~(E_STRICT|E_NOTICE|E_DEPRECATED)); //error_reporting(E_ALL | E_STRICT); @@ -76,6 +77,7 @@ if (! $result && ! empty($_SERVER["GATEWAY_INTERFACE"])) // If install not do exit; } + // Disable php display errors if (! empty($dolibarr_main_prod)) {