From b9c7256e77d8746f1d432d73ccd17835c89c3e87 Mon Sep 17 00:00:00 2001 From: tsmr Date: Fri, 26 Aug 2022 15:02:51 +0200 Subject: [PATCH] drop not used condition --- inc/addressing.class.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/inc/addressing.class.php b/inc/addressing.class.php index ccbf0c5..e5936f6 100644 --- a/inc/addressing.class.php +++ b/inc/addressing.class.php @@ -518,7 +518,7 @@ function compute($start, $params = []) { AND `port`.`itemtype` = 'NetworkEquipment') LEFT JOIN `glpi_networknames` ON (`port`.`id` = `glpi_networknames`.`items_id`) LEFT JOIN `glpi_ipaddresses` ON (`glpi_ipaddresses`.`items_id` = `glpi_networknames`.`id`) - WHERE (`glpi_ipaddresses`.`name` IS NOT NULL AND `glpi_ipaddresses`.`name` != '0.0.0.0' AND `glpi_ipaddresses`.`name` != '') AND `glpi_ipaddresses`.`version` LIKE 4 + WHERE (`glpi_ipaddresses`.`name` IS NOT NULL AND `glpi_ipaddresses`.`name` != '') AND `glpi_ipaddresses`.`version` LIKE 4 AND (INET_ATON(`glpi_ipaddresses`.`name`) BETWEEN '$ipdeb' AND '$ipfin') AND `dev`.`is_deleted` = 0 AND `dev`.`is_template` = 0 "; @@ -579,7 +579,7 @@ function compute($start, $params = []) { AND `port`.`itemtype` = '" . $type . "') LEFT JOIN `glpi_networknames` ON (`port`.`id` = `glpi_networknames`.`items_id`) LEFT JOIN `glpi_ipaddresses` ON (`glpi_ipaddresses`.`items_id` = `glpi_networknames`.`id`) - WHERE (`glpi_ipaddresses`.`name` IS NOT NULL AND `glpi_ipaddresses`.`name` != '0.0.0.0' AND `glpi_ipaddresses`.`name` != '') AND `glpi_ipaddresses`.`version` LIKE 4 + WHERE (`glpi_ipaddresses`.`name` IS NOT NULL AND `glpi_ipaddresses`.`name` != '') AND `glpi_ipaddresses`.`version` LIKE 4 AND (INET_ATON(`glpi_ipaddresses`.`name`) BETWEEN '$ipdeb' AND '$ipfin')"; $dbu = new DbUtils(); if (isset($entities)) {