From f66b2f531637a36102aff03ddb4836b19b003ece Mon Sep 17 00:00:00 2001 From: Regis Houssin <regis@dolibarr.fr> Date: Mon, 19 Oct 2009 18:54:50 +0000 Subject: [PATCH] Fix: Deprecated since php 5.3.0, syslog variables no longer need to be initialized --- htdocs/master.inc.php | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/htdocs/master.inc.php b/htdocs/master.inc.php index d65bb0cda0c..af9a32ba1a2 100644 --- a/htdocs/master.inc.php +++ b/htdocs/master.inc.php @@ -37,7 +37,10 @@ define('EURO',chr(128)); // Definition des constantes syslog if (function_exists("define_syslog_variables")) { - define_syslog_variables(); + if (version_compare(PHP_VERSION, '5.3.0', '<')) + { + define_syslog_variables(); // Deprecated since php 5.3.0, syslog variables no longer need to be initialized + } } else { -- GitLab