From 297b6a007c68a09339b08f16046770f91b3bd7da Mon Sep 17 00:00:00 2001 From: Laurent Destailleur Date: Wed, 29 Apr 2009 21:40:14 +0000 Subject: [PATCH] Comment --- htdocs/lib/functions.lib.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/htdocs/lib/functions.lib.php b/htdocs/lib/functions.lib.php index b8f49649818..e288ce27eb8 100644 --- a/htdocs/lib/functions.lib.php +++ b/htdocs/lib/functions.lib.php @@ -185,8 +185,8 @@ function dol_syslog($message, $level=LOG_INFO) { $filelog=SYSLOG_FILE; $filelog=eregi_replace('DOL_DATA_ROOT',DOL_DATA_ROOT,$filelog); - // Check if syslog module use the default path - if (!eregi('(^[A-Za-z0-9_\-\\/:]+[\\/]+)([A-Za-z0-9_\-]+[.]?[A-Za-z0-9]+)?$', SYSLOG_FILE) && $conf->syslog->dir_output) + // Check if syslog module has been setup with a full path + if (! eregi('(^[A-Za-z0-9_\-\\/:]+[\\/]+)([A-Za-z0-9_\-]+[.]?[A-Za-z0-9]+)?$', SYSLOG_FILE) && ! empty($conf->syslog->dir_output)) { $filelog = $conf->syslog->dir_output."/".$filelog; }