Fixing scrutinizer issue

This commit is contained in:
laf
2015-02-26 19:48:54 +00:00
parent fdf902116e
commit a0701fbd25

View File

@@ -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);