Module: nagvis Branch: nagvis-1.4 Commit: 53d929025995db9b16c544226665758b4b81427e URL: http://nagvis.git.sourceforge.net/git/gitweb.cgi?p=nagvis/nagvis;a=commit;h=53d929025995db9b16c544226665758b4b81427e
Author: Lars Michelsen <[email protected]> Date: Fri Oct 9 19:55:05 2009 +0200 #126 Fixed ndo2fs notice on empty hostgroup --- .../includes/classes/GlobalBackendndo2fs.php | 6 +++++- 1 files changed, 5 insertions(+), 1 deletions(-) diff --git a/nagvis/nagvis/includes/classes/GlobalBackendndo2fs.php b/nagvis/nagvis/includes/classes/GlobalBackendndo2fs.php index 80c4fd4..abdc7bf 100644 --- a/nagvis/nagvis/includes/classes/GlobalBackendndo2fs.php +++ b/nagvis/nagvis/includes/classes/GlobalBackendndo2fs.php @@ -644,7 +644,11 @@ class GlobalBackendndo2fs implements GlobalBackendInterface { if(file_exists($this->pathVolatile.'/HOSTGROUPS/'.$hostgroupName)) { $oMeta = json_decode(file_get_contents($this->pathVolatile.'/HOSTGROUPS/'.$hostgroupName.'/META')); - $aReturn = $oMeta->HOSTGROUPMEMBER; + + // The property does not exist in empty hostgroups + if(isset($oMeta->HOSTGROUPMEMBER)) { + $aReturn = $oMeta->HOSTGROUPMEMBER; + } } return $aReturn; ------------------------------------------------------------------------------ Come build with us! The BlackBerry(R) Developer Conference in SF, CA is the only developer event you need to attend this year. Jumpstart your developing skills, take BlackBerry mobile applications to market and stay ahead of the curve. Join us from November 9 - 12, 2009. Register now! http://p.sf.net/sfu/devconference _______________________________________________ Nagvis-checkins mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/nagvis-checkins
