From 7c0e090c5cb6c1ce2e109cfd3162231b6ee7c370 Mon Sep 17 00:00:00 2001 From: TheWitness Date: Tue, 17 Sep 2024 15:42:52 -0400 Subject: [PATCH] Minor QA on #5825 - Remove Device Missing test for no device enhancement --- cli/remove_device.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/cli/remove_device.php b/cli/remove_device.php index c953f9673c..561ebbf2ff 100644 --- a/cli/remove_device.php +++ b/cli/remove_device.php @@ -122,7 +122,7 @@ $ids_ip = array(); /* process host description */ - if ($description > '') { + if ($description != '') { if ($debug) { print "Searching hosts by description..." . PHP_EOL; } @@ -148,7 +148,7 @@ } } - if (cacti_sizeof($ids_host) == 0 && cacti_sizeof($ids_ip) == 0) { + if (cacti_sizeof($ids_host) == 0 && cacti_sizeof($ids_ip) == 0 && cacti_sizeof($ids_id) == 0) { print "ERROR: No matches found, was IP or Description set properly?" . PHP_EOL; exit(1); }