summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: fe84544)
raw | patch | inline | side by side (parent: fe84544)
author | hickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8> | |
Thu, 19 Aug 2010 07:27:42 +0000 (07:27 +0000) | ||
committer | hickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8> | |
Thu, 19 Aug 2010 07:27:42 +0000 (07:27 +0000) |
git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@19410 594d385d-05f5-0310-b6e9-bd551577e9d8
gosa-core/include/class_stats.inc | patch | blob | history |
index d5e56ede06016b637e0df85d2eb795341abf59a1..0a4c474a0b0ddc2299ba7bc4b3e83bc303fdac6e 100644 (file)
{
// We cannot log while the path to store logs in is empty.
global $config;
+
+ // Check if Logging is enabled
+ if(!is_object($config) || ! $config instanceOf config){
+ return(NULL);
+ }
+
$path = $config->get_cfg_value('core', 'statsDatabaseDirectory');
if(empty($path)){
return(NULL);
return(stats::$lastHandle[$filename]);
}
- // Check if Logging is enabled
- if(!is_object($config) || ! $config instanceOf config){
- return(NULL);
- }
-
// Get statsFile property
stats::$statsEnabled = $config->boolValueIsTrue('core', 'statsDatabaseEnabled');
if(!stats::$statsEnabled){