[icinga-checkins] icinga.org: icinga-web/master: Grids w/ o commands had a non-existing reference issue and didn' t load when commands are restricted

git at icinga.org git at icinga.org
Tue Oct 9 13:24:56 CEST 2012


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

Author: Jannis Mosshammer <jannis.mosshammer at netways.de>
Date:   Tue Oct  9 13:23:59 2012 +0200

Grids w/o commands had a non-existing reference issue and didn't load when commands are restricted
fixes #2882

---

 .../template/CronkGridTemplateXmlParser.class.php  |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)

diff --git a/app/modules/Cronks/lib/template/CronkGridTemplateXmlParser.class.php b/app/modules/Cronks/lib/template/CronkGridTemplateXmlParser.class.php
old mode 100644
new mode 100755
index 5acf9c0..4b51975
--- a/app/modules/Cronks/lib/template/CronkGridTemplateXmlParser.class.php
+++ b/app/modules/Cronks/lib/template/CronkGridTemplateXmlParser.class.php
@@ -488,7 +488,8 @@ class CronkGridTemplateXmlParser {
             return;
         if (!isset($data["option"]["commands"]))
             return;
-
+        if(!isset($data["option"]["commands"]["items"]))
+            return;
         $items = $data["option"]["commands"]["items"];
         if (!is_array($items))
             return;





More information about the icinga-checkins mailing list