summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 29bee2c)
raw | patch | inline | side by side (parent: 29bee2c)
author | cajus <cajus@594d385d-05f5-0310-b6e9-bd551577e9d8> | |
Thu, 24 Jul 2008 13:32:15 +0000 (13:32 +0000) | ||
committer | cajus <cajus@594d385d-05f5-0310-b6e9-bd551577e9d8> | |
Thu, 24 Jul 2008 13:32:15 +0000 (13:32 +0000) |
git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@12025 594d385d-05f5-0310-b6e9-bd551577e9d8
gosa-core/include/class_log.inc | patch | blob | history |
index f255bd5ad0af7caa3221e0cc98b2e1812bbecaf1..8b283bd258180b038296687b55c3b355cbe0d5e5 100644 (file)
$entry['changes'] = $changes;
$entry['result'] = $result;
- if($this->config->get_cfg_value("logging") == "" && empty($entry['user'])){
+ if(!isset($config) || ( $this->config->get_cfg_value("logging") == "" && empty($entry['user']))){
$entry['user'] = "unknown";
}
}else{
- if ($this->config->get_cfg_value("logging") == ""){
- $this->log_into_syslog($entry);
- }else{
-
- /* Start logging for configured methods */
- if(preg_match("/(^|,)syslog(,|$)/i",$this->config->get_cfg_value("logging"))){
+ if (isset ($config)){
+ if ($this->config->get_cfg_value("logging") == ""){
$this->log_into_syslog($entry);
- }
- if(preg_match("/(^|,)mysql(,|$)/i",$this->config->get_cfg_value("logging"))){
- $this->log_into_db($entry);
+ }else{
+
+ /* Start logging for configured methods */
+ if(preg_match("/(^|,)syslog(,|$)/i",$this->config->get_cfg_value("logging"))){
+ $this->log_into_syslog($entry);
+ }
+ if(preg_match("/(^|,)mysql(,|$)/i",$this->config->get_cfg_value("logging"))){
+ $this->log_into_db($entry);
+ }
}
}
}