Module: nagvis
Branch: nagvis-1.4
Commit: 08f2bf63f66b513ce66b94fcd81a00539857edbc
URL:    
http://nagvis.git.sourceforge.net/git/gitweb.cgi?p=nagvis/nagvis;a=commit;h=08f2bf63f66b513ce66b94fcd81a00539857edbc

Author: LaMi <[email protected]>
Date:   Wed Nov  4 16:42:46 2009 +0100

Fixed problems when communicating with mklivestatus

---

 .../includes/classes/GlobalBackendmklivestatus.php |    4 +---
 1 files changed, 1 insertions(+), 3 deletions(-)

diff --git a/nagvis/nagvis/includes/classes/GlobalBackendmklivestatus.php 
b/nagvis/nagvis/includes/classes/GlobalBackendmklivestatus.php
index 3ba2c67..0f0efb6 100644
--- a/nagvis/nagvis/includes/classes/GlobalBackendmklivestatus.php
+++ b/nagvis/nagvis/includes/classes/GlobalBackendmklivestatus.php
@@ -433,12 +433,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'] = 
$this->CORE->LANG->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

Reply via email to