[icinga-checkins] icinga.org: icinga-web/master: * Fixed wrong tacticaloverview counts

git at icinga.org git at icinga.org
Wed Nov 23 12:36:39 CET 2011


Module: icinga-web
Branch: master
Commit: 792370c8affb6276639955cd3db5a18e2e471c9b
URL:    https://git.icinga.org/?p=icinga-web.git;a=commit;h=792370c8affb6276639955cd3db5a18e2e471c9b

Author: Jannis Mosshammer <jannis.mosshammer at netways.de>
Date:   Tue Nov 22 15:34:04 2011 +0100

* Fixed wrong tacticaloverview counts

---

 .../models/System/StatusOverallModel.class.php     |    7 +++++--
 1 files changed, 5 insertions(+), 2 deletions(-)

diff --git a/app/modules/Cronks/models/System/StatusOverallModel.class.php b/app/modules/Cronks/models/System/StatusOverallModel.class.php
index 09b768b..f54a1d7 100644
--- a/app/modules/Cronks/models/System/StatusOverallModel.class.php
+++ b/app/modules/Cronks/models/System/StatusOverallModel.class.php
@@ -53,7 +53,6 @@ class Cronks_System_StatusOverallModel extends CronksBaseModel {
         $out = array(
 
         );
-
         foreach($data as $index=>$currentStateSummary) {
             
             if (isset($currentStateSummary[$state_field]) && isset($currentStateSummary[$count_field])) {
@@ -99,7 +98,11 @@ class Cronks_System_StatusOverallModel extends CronksBaseModel {
 
         foreach($states as $sid=>$sname) {
             $count = 0;
-
+            $entry = array(
+                self::IDX_NO_PROBLEM => 0,
+                self::IDX_OPEN_PROBLEM => 0,
+                self::IDX_SUM => 0
+            );
             if (array_key_exists($sid, $data)) {
                 $entry = $data[$sid];
             }





More information about the icinga-checkins mailing list