Module: nagvis Branch: master Commit: 27bd3bb2613db9b27832112345e253a047e3b9aa URL: http://nagvis.git.sourceforge.net/git/gitweb.cgi?p=nagvis/nagvis;a=commit;h=27bd3bb2613db9b27832112345e253a047e3b9aa
Author: Lars Michelsen <[email protected]> Date: Fri Oct 9 19:55:05 2009 +0200 #126 Fixed ndo2fs notice on empty hostgroup --- share/server/core/classes/GlobalBackendndo2fs.php | 6 +++++- 1 files changed, 5 insertions(+), 1 deletions(-) diff --git a/share/server/core/classes/GlobalBackendndo2fs.php b/share/server/core/classes/GlobalBackendndo2fs.php index 74fe3bb..438b83f 100644 --- a/share/server/core/classes/GlobalBackendndo2fs.php +++ b/share/server/core/classes/GlobalBackendndo2fs.php @@ -694,7 +694,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
