From: psc Date: Thu, 18 Feb 2010 08:19:01 +0000 (+0000) Subject: Fix logging (Trac: #1797) X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=8feff3e77980fb5fc17d58d348d58e29548c4b81;p=gosa.git Fix logging (Trac: #1797) Replace occurences of config usage with usage of this->config because otherwise no logging takes place (this->config is initialized while $config would need to be imported from the global namespace). git-svn-id: https://oss.gonicus.de/repositories/gosa/branches/2.6-lhm@15642 594d385d-05f5-0310-b6e9-bd551577e9d8 --- diff --git a/trunk/gosa-core/include/class_log.inc b/trunk/gosa-core/include/class_log.inc index bbe31517e..4b846e572 100644 --- a/trunk/gosa-core/include/class_log.inc +++ b/trunk/gosa-core/include/class_log.inc @@ -76,7 +76,7 @@ class log { $entry['changes'] = $changes; $entry['result'] = $result; - if(!isset($config) || ( $this->config->get_cfg_value("logging") == "" && empty($entry['user']))){ + if(!isset($this->config) || ( $this->config->get_cfg_value("logging") == "" && empty($entry['user']))){ $entry['user'] = "unknown"; } @@ -90,7 +90,7 @@ class log { }else{ - if (isset ($config)){ + if (isset ($this->config)){ if ($this->config->get_cfg_value("logging") == ""){ $this->log_into_syslog($entry); }else{