From c7dc9c50abc4eae28a280012f1d37be16c7b83ee Mon Sep 17 00:00:00 2001 From: hickert Date: Thu, 26 Aug 2010 08:22:54 +0000 Subject: [PATCH] Fixed initial errors git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@19457 594d385d-05f5-0310-b6e9-bd551577e9d8 --- .../statistics/chartClasses/class_actionSelectChart.inc | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/gosa-core/plugins/generic/statistics/chartClasses/class_actionSelectChart.inc b/gosa-core/plugins/generic/statistics/chartClasses/class_actionSelectChart.inc index 35ea8fe38..2fecae2d4 100644 --- a/gosa-core/plugins/generic/statistics/chartClasses/class_actionSelectChart.inc +++ b/gosa-core/plugins/generic/statistics/chartClasses/class_actionSelectChart.inc @@ -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){ -- 2.30.2