From 89290479a6cfe835f8c9fdfa96fdbe5305bcfbcf Mon Sep 17 00:00:00 2001 From: Hayden Date: Thu, 2 Apr 2020 01:49:28 -0700 Subject: [PATCH] check if lat/long exist for each device with link (#11366) --- includes/html/common/worldmap.inc.php | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/includes/html/common/worldmap.inc.php b/includes/html/common/worldmap.inc.php index 4cb126dd62..d566f90081 100644 --- a/includes/html/common/worldmap.inc.php +++ b/includes/html/common/worldmap.inc.php @@ -167,6 +167,10 @@ marker.bindPopup(title); AND lp.ifOutOctets_rate != 0 AND lp.ifInOctets_rate != 0 AND lp.ifOperStatus = 'up' + AND ll.lat IS NOT NULL + AND ll.lng IS NOT NULL + AND rl.lat IS NOT NULL + AND rl.lng IS NOT NULL AND ld.status IN " . dbGenPlaceholders(count($show_status)) . " AND rd.status IN " . dbGenPlaceholders(count($show_status)) . " GROUP BY @@ -209,6 +213,10 @@ marker.bindPopup(title); AND lp.ifOutOctets_rate != 0 AND lp.ifInOctets_rate != 0 AND lp.ifOperStatus = 'up' + AND ll.lat IS NOT NULL + AND ll.lng IS NOT NULL + AND rl.lat IS NOT NULL + AND rl.lng IS NOT NULL AND ld.status IN " . dbGenPlaceholders(count($show_status)) . " AND rd.status IN " . dbGenPlaceholders(count($show_status)) . " AND ld.device_id IN " . dbGenPlaceholders(count($device_ids)) . "