Module: nagvis Branch: master Commit: 5838743ba9147f3877d0075c9e8cc11eb3303230 URL: http://nagvis.git.sourceforge.net/git/gitweb.cgi?p=nagvis/nagvis;a=commit;h=5838743ba9147f3877d0075c9e8cc11eb3303230
Author: LaMi <[email protected]> Date: Wed Nov 4 16:42:46 2009 +0100 Fixed problems when communicating with mklivestatus --- .../core/classes/GlobalBackendmklivestatus.php | 4 +--- 1 files changed, 1 insertions(+), 3 deletions(-) diff --git a/share/server/core/classes/GlobalBackendmklivestatus.php b/share/server/core/classes/GlobalBackendmklivestatus.php index d17bee2..f7fb116 100644 --- a/share/server/core/classes/GlobalBackendmklivestatus.php +++ b/share/server/core/classes/GlobalBackendmklivestatus.php @@ -432,12 +432,10 @@ class GlobalBackendmklivestatus implements GlobalBackendInterface { $l = $this->queryLivestatus($query); - reset($l); - $result = Array(); $arrReturn = Array(); - if(count($l) <= 0) { + if(!is_array($l) || count($l) <= 0) { if(isset($serviceName) && $serviceName != '') { $arrReturn['state'] = 'ERROR'; $arrReturn['output'] = GlobalCore::getInstance()->getLang()->getText('serviceNotFoundInDB', Array('BACKENDID' => $this->backendId, 'SERVICE' => $serviceName, 'HOST' => $hostName)); ------------------------------------------------------------------------------ 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
