From a0701fbd25b628bf39def8cb4dbce56a7db081d7 Mon Sep 17 00:00:00 2001 From: laf Date: Thu, 26 Feb 2015 19:48:54 +0000 Subject: [PATCH] Fixing scrutinizer issue --- includes/discovery/charge/apc.inc.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/includes/discovery/charge/apc.inc.php b/includes/discovery/charge/apc.inc.php index 48cea11178..9ad62bbafe 100644 --- a/includes/discovery/charge/apc.inc.php +++ b/includes/discovery/charge/apc.inc.php @@ -7,7 +7,7 @@ if ($device['os'] == "apc") { } // Try High-Precision First - if ($oids) { + if (!empty($oids)) { echo("APC UPS Battery Charge High Precision"); $type = "apc"; list($oid,$current) = explode(' ',$oids); @@ -30,7 +30,7 @@ if ($device['os'] == "apc") { echo($oids."\n"); } - if ($oids) { + if (!empty($oids)) { echo("APC UPS Battery Charge"); $type = "apc"; list($oid,$current) = explode(' ',$oids);