Module: nagvis Branch: master Commit: 594a4f18696ab5b6be5e59932f5a574ac33be742 URL: http://nagvis.git.sourceforge.net/git/gitweb.cgi?p=nagvis/nagvis/commit/?id=594a4f18696ab5b6be5e59932f5a574ac33be742
Author: Roman Kyrylych <[email protected]> Date: Tue Aug 11 16:13:34 2009 +0300 gmap: Do not try to get status of locations with no Nagios object binded Signed-off-by: Roman Kyrylych <[email protected]> --- share/netmap/Location.php | 3 +++ 1 files changed, 3 insertions(+), 0 deletions(-) diff --git a/share/netmap/Location.php b/share/netmap/Location.php index e3f353a..315cab1 100644 --- a/share/netmap/Location.php +++ b/share/netmap/Location.php @@ -215,6 +215,9 @@ class Location { $location = Location::fromXML($node); + if (!isset($location->object)) + continue; + switch (get_class($location->object)) { case 'Host': ------------------------------------------------------------------------------ Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day trial. Simplify your report design, integration and deployment - and focus on what you do best, core application coding. Discover what's new with Crystal Reports now. http://p.sf.net/sfu/bobj-july _______________________________________________ Nagvis-checkins mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/nagvis-checkins
