Fix: PHP 5.2 compatibility
Conflicts: htdocs/filefunc.inc.php
This commit is contained in:
parent
185c03eea5
commit
d3986b4936
@ -54,6 +54,7 @@ if (! defined('LOG_DEBUG'))
|
|||||||
}
|
}
|
||||||
|
|
||||||
// Force PHP error_reporting setup (Dolibarr may report warning without this)
|
// 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|E_NOTICE|E_DEPRECATED));
|
||||||
//error_reporting(E_ALL | E_STRICT);
|
//error_reporting(E_ALL | E_STRICT);
|
||||||
|
|
||||||
@ -76,6 +77,7 @@ if (! $result && ! empty($_SERVER["GATEWAY_INTERFACE"])) // If install not do
|
|||||||
exit;
|
exit;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
// Disable php display errors
|
// Disable php display errors
|
||||||
if (! empty($dolibarr_main_prod))
|
if (! empty($dolibarr_main_prod))
|
||||||
{
|
{
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user