Code

Fixed initial errors
authorhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Thu, 26 Aug 2010 08:22:54 +0000 (08:22 +0000)
committerhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Thu, 26 Aug 2010 08:22:54 +0000 (08:22 +0000)
git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@19457 594d385d-05f5-0310-b6e9-bd551577e9d8

gosa-core/plugins/generic/statistics/chartClasses/class_actionSelectChart.inc

index 35ea8fe38cc4096f6b2f5eaa17a55716e93c0290..2fecae2d431d2c639cb3603b5501e426e6d1e053 100644 (file)
@@ -2,7 +2,8 @@
 
 class actionSelectChart extends statChart
 {
-    protected $title = 'Plugin usage over time';
+    protected $title = 'Action count per plugin';
+    protected $current_action = "";
 
     function __construct(&$config)
     {
@@ -20,6 +21,10 @@ class actionSelectChart extends statChart
         $dataSet = new pData;  
         $seriesCnt = 0;
 
+        if(!isset($gData['actionsAndCategoryPerInterval'][$this->current_action])){
+            $this->current_action = key($gData['actionsAndCategoryPerInterval']);
+        }
+
         $dataBase = $gData['actionsAndCategoryPerInterval'][$this->current_action];
     
         foreach($dataBase as $category => $entriesPerDate){