[icinga-checkins] icinga.org: icinga-web/r1.5: * StatusMap model sanitize fix

git at icinga.org git at icinga.org
Thu Dec 1 10:36:49 CET 2011


Module: icinga-web
Branch: r1.5
Commit: 9b10bd4c6f368d620d47d4dbe5253fa1c0ba410e
URL:    https://git.icinga.org/?p=icinga-web.git;a=commit;h=9b10bd4c6f368d620d47d4dbe5253fa1c0ba410e

Author: Marius Hein <marius.hein at netways.de>
Date:   Wed Nov 30 15:44:21 2011 +0100

* StatusMap model sanitize fix

---

 .../Cronks/models/System/StatusMapModel.class.php  |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/app/modules/Cronks/models/System/StatusMapModel.class.php b/app/modules/Cronks/models/System/StatusMapModel.class.php
index f8b9bf0..270ed51 100644
--- a/app/modules/Cronks/models/System/StatusMapModel.class.php
+++ b/app/modules/Cronks/models/System/StatusMapModel.class.php
@@ -81,7 +81,7 @@ class Cronks_System_StatusMapModel extends CronksBaseModel {
             $childObjectId = $idPrefix . $row->HOST_CHILD_OBJECT_ID;
             $parentObjectId = $idPrefix . $row->HOST_PARENT_OBJECT_ID;
 
-            if (!array_key_exists($childObjectId, $hostReferences)) {
+            if (!array_key_exists($childObjectId, $hostReferences) && isset($hosts[$childObjectId])) {
                     $hostReferences[$childObjectId] = $hosts[$childObjectId];
             }
 
@@ -190,4 +190,4 @@ class Cronks_System_StatusMapModel extends CronksBaseModel {
         return $hostsFlat;
     }
 
-}
\ No newline at end of file
+}





More information about the icinga-checkins mailing list