Fix: PHP 5.2 compatibility

Conflicts:
	htdocs/filefunc.inc.php
This commit is contained in:
Laurent Destailleur 2012-09-05 10:16:23 +02:00
parent 185c03eea5
commit d3986b4936

View File

@ -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))
{