From: hickert Date: Thu, 26 Aug 2010 08:22:54 +0000 (+0000) Subject: Fixed initial errors X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=c7dc9c50abc4eae28a280012f1d37be16c7b83ee;p=gosa.git Fixed initial errors git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@19457 594d385d-05f5-0310-b6e9-bd551577e9d8 --- 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){