mirror of
https://github.com/librenms/librenms.git
synced 2024-10-07 16:52:45 +00:00
fix devices missing from graph view (#11886)
devices without a location were not showing
This commit is contained in:
@@ -202,7 +202,7 @@ if ($format == "graph") {
|
||||
$where .= " )";
|
||||
}
|
||||
|
||||
$query = "SELECT * FROM `devices`,locations WHERE devices.location_id = locations.id ";
|
||||
$query = "SELECT * FROM `devices` LEFT JOIN `locations` ON `devices`.`location_id` = `locations`.`id` WHERE 1";
|
||||
|
||||
if (isset($where)) {
|
||||
$query .= $where;
|
||||
|
Reference in New Issue
Block a user