From e559f817d22accff1033f6e5e4c8a4f9a5a18ab8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?C=C3=B4me=20Chilliet?= <come.bernigaud@opensides.be> Date: Fri, 3 Jun 2016 06:55:27 +0200 Subject: [PATCH] Fixes #4774 Replaced a few last occurences of log class name --- include/php_setup.inc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/include/php_setup.inc b/include/php_setup.inc index 2b7dcc855..ab52ff33b 100644 --- a/include/php_setup.inc +++ b/include/php_setup.inc @@ -190,7 +190,7 @@ function gosaRaiseError($errno, $errstr, $errfile, $errline) if (isset($config->data) && $config->get_cfg_value('displayerrors') != 'TRUE') { /* Write to syslog */ - if (class_exists('log') && !preg_match('/No such object/', $errstr)) { + if (class_exists('logging') && !preg_match('/No such object/', $errstr)) { logging::log('view', 'error', '', array(), "PHP error: $errstr ($errfile, line $errline)"); } @@ -199,7 +199,7 @@ function gosaRaiseError($errno, $errstr, $errfile, $errline) } /* Send all errors to logging class, except "Ldap : No such object" messages*/ - if (class_exists('log') && !preg_match('/No such object/', $errstr)) { + if (class_exists('logging') && !preg_match('/No such object/', $errstr)) { logging::log('debug', 'all', $errfile, array(), 'Type:'.$errno.', Message:'.$errstr.', File:'.$errfile.', Line: '.$errline); } -- GitLab