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

git at icinga.org git at icinga.org
Wed Nov 30 15:46:52 CET 2011


Module: icinga-web
Branch: r1.6
Commit: 44efac1925a9abcabbec304082dc91bd28c47b02
URL:    https://git.icinga.org/?p=icinga-web.git;a=commit;h=44efac1925a9abcabbec304082dc91bd28c47b02

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 0ab3e0c..db46e2a 100644
--- a/app/modules/Cronks/models/System/StatusMapModel.class.php
+++ b/app/modules/Cronks/models/System/StatusMapModel.class.php
@@ -82,7 +82,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];
             }
 
@@ -193,4 +193,4 @@ class Cronks_System_StatusMapModel extends CronksBaseModel {
         return $hostsFlat;
     }
 
-}
\ No newline at end of file
+}





More information about the icinga-checkins mailing list