Code

Updated stats
authorhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Fri, 20 Aug 2010 10:09:29 +0000 (10:09 +0000)
committerhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Fri, 20 Aug 2010 10:09:29 +0000 (10:09 +0000)
git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@19417 594d385d-05f5-0310-b6e9-bd551577e9d8

gosa-core/plugins/generic/statistics/class_statistics.inc

index 4f834d3fe493ca2bd84583cf81c563cedf6a9b97..8c5d59258bb5215d95b6aa22254f43376dd51d20 100644 (file)
@@ -238,8 +238,7 @@ class statistics extends plugin
                             if($count) $count = ($count);
                             $dataArray[$category][$date] = $count;
                         }
-                      
+                     
                         // Do not append empty data 
                         if(empty($category)) continue;
 
@@ -304,6 +303,8 @@ class statistics extends plugin
                         $errors[$date] = $count;
                     }
 
+                    ksort($errors);
+
                     $DataSet2->AddPoint($errors, 'Errors');
                     $DataSet2->SetSerieName(_('Error'), 'Errors');
                     $DataSet2->AddSerie('Errors');
@@ -330,19 +331,6 @@ class statistics extends plugin
 
 
 
-
-
-
-
-
-
-
-                        
-                
-
-
-
-
                     // Prepare Data 
                     $graphData = array();
                     foreach($res['usagePerInterval'] as $dateStr => $data){