Module: nagvis Branch: master Commit: b6838e962022b4bcf89f4ff72675b73322ada027 URL: http://nagvis.git.sourceforge.net/git/gitweb.cgi?p=nagvis/nagvis;a=commit;h=b6838e962022b4bcf89f4ff72675b73322ada027
Author: LaMi <[email protected]> Date: Thu Nov 12 15:14:06 2009 +0100 Fixed problems detecting pending states correctly --- .../core/classes/GlobalBackendmklivestatus.php | 8 ++++---- 1 files changed, 4 insertions(+), 4 deletions(-) diff --git a/share/server/core/classes/GlobalBackendmklivestatus.php b/share/server/core/classes/GlobalBackendmklivestatus.php index 22dd9ed..397b75b 100644 --- a/share/server/core/classes/GlobalBackendmklivestatus.php +++ b/share/server/core/classes/GlobalBackendmklivestatus.php @@ -404,7 +404,7 @@ class GlobalBackendmklivestatus implements GlobalBackendInterface { // Catch pending objects // $e[19]: has_been_checked // $e[1]: state - if($e[19] == '0' || $e[1] == '') { + if($e[19] == 0 || $e[1] === '') { $arrTmpReturn['state'] = 'PENDING'; $arrTmpReturn['output'] = GlobalCore::getInstance()->getLang()->getText('hostIsPending', Array('HOST' => $e[0])); } else { @@ -504,7 +504,7 @@ class GlobalBackendmklivestatus implements GlobalBackendInterface { // Catch pending objects // $e[20]: has_been_checked // $e[3]: state - if($e[20] == '0' || $e[3] == '') { + if($e[20] == 0 || $e[3] === '') { $arrTmpReturn['state'] = 'PENDING'; $arrTmpReturn['output'] = GlobalCore::getInstance()->getLang()->getText('serviceNotChecked', Array('SERVICE' => $e[1])); } else { @@ -618,7 +618,7 @@ class GlobalBackendmklivestatus implements GlobalBackendInterface { // Catch pending objects // $e[17]: has_been_checked // $e[0]: state - if($e[17] == '0' || $e[0] == '') { + if($e[17] == 0 || $e[0] === '') { $arrReturn['state'] = 'PENDING'; $arrReturn['output'] = GlobalCore::getInstance()->getLang()->getText('hostIsPending', Array('HOST' => $hostName)); return $arrReturn; @@ -739,7 +739,7 @@ class GlobalBackendmklivestatus implements GlobalBackendInterface { // Catch pending objects // $e[17]: has_been_checked // $e[2]: state - if($e[19] == '0' || $e[2] == '') { + if($e[19] == 0 || $e[2] === '') { $arrTmpReturn['state'] = 'PENDING'; $arrTmpReturn['output'] = GlobalCore::getInstance()->getLang()->getText('serviceNotChecked', Array('SERVICE' => $e[0])); return $arrReturn; ------------------------------------------------------------------------------ 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
