diff options
| author | cassiopc <cassiopc@gmail.com> | 2013-11-07 09:27:39 +0000 |
|---|---|---|
| committer | cassiopc <cassiopc@gmail.com> | 2013-11-07 09:27:39 +0000 |
| commit | 8056c11598c239da963e574d65d65342def472bd (patch) | |
| tree | d1e78a84b3d1a042ab76f9dbcb85a151328280c7 | |
| parent | 30bd0e053965c8943b9fcfe78d8cb90730a4237a (diff) | |
| download | boca-8056c11598c239da963e574d65d65342def472bd.tar.gz boca-8056c11598c239da963e574d65d65342def472bd.zip | |
removing the call to define_syslog for php versions >= 5.4
| -rwxr-xr-x | src/globals.php | 3 |
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: "; |