From 69c2b3521227f568d4f2d20938ceb1072afefbee Mon Sep 17 00:00:00 2001 From: laf Date: Tue, 14 Jul 2015 12:13:17 +0100 Subject: [PATCH] Added restriction for device_id --- html/includes/print-map.inc.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/html/includes/print-map.inc.php b/html/includes/print-map.inc.php index a973f27e7d..c9fc541d1c 100644 --- a/html/includes/print-map.inc.php +++ b/html/includes/print-map.inc.php @@ -61,7 +61,7 @@ foreach (dbFetchRows("SELECT LEFT JOIN `ports` AS `P2` ON `P2`.`port_id`=`links`.`remote_port_id` WHERE `active`=1 - AND `remote_device_id`!=0 + $sql ",$sql_array) as $items) { $local_device = array('device_id'=>$items['local_device_id'], 'os'=>$items['local_os'], 'hostname'=>$items['local_hostname']); $remote_device = array('device_id'=>$items['remote_device_id'], 'os'=>$items['remote_os'], 'hostname'=>$items['remote_hostname']);