aboutsummaryrefslogtreecommitdiff
path: root/src/globals.php
diff options
context:
space:
mode:
authorcassiopc <cassiopc@gmail.com>2013-11-07 09:27:39 +0000
committercassiopc <cassiopc@gmail.com>2013-11-07 09:27:39 +0000
commit8056c11598c239da963e574d65d65342def472bd (patch)
treed1e78a84b3d1a042ab76f9dbcb85a151328280c7 /src/globals.php
parent30bd0e053965c8943b9fcfe78d8cb90730a4237a (diff)
downloadboca-8056c11598c239da963e574d65d65342def472bd.tar.gz
boca-8056c11598c239da963e574d65d65342def472bd.zip
removing the call to define_syslog for php versions >= 5.4
Diffstat (limited to 'src/globals.php')
-rwxr-xr-xsrc/globals.php3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/globals.php b/src/globals.php
index 487c26f..d4e5319 100755
--- a/src/globals.php
+++ b/src/globals.php
@@ -219,7 +219,8 @@ function LOGError($msg) {
function LOGLevel($msg,$level,$dodb=true) {
$msga = sanitizeText(str_replace("\n", " ", $msg));
$msg = now() . ": ";
- define_syslog_variables ();
+ // if php version arrives to 5.10 then this will not work!!
+ if(strcmp(phpversion(),'5.4.0')<0) define_syslog_variables ();
$prior = LOG_CRIT;
switch ($level) {
case 0: $msg .= "ERROR: ";