mirror of
https://github.com/librenms/librenms.git
synced 2024-10-07 16:52:45 +00:00
fix bug with globe.php
git-svn-id: http://www.observium.org/svn/observer/trunk@3247 61d68cd4-352d-0410-923a-c4978735b2b8
This commit is contained in:
@@ -11,6 +11,8 @@
|
||||
data.addRows([
|
||||
<?php
|
||||
|
||||
$locations_up = array();
|
||||
$locations_down = array();
|
||||
foreach (getlocations() as $location)
|
||||
{
|
||||
|
||||
@@ -19,6 +21,7 @@ foreach (getlocations() as $location)
|
||||
$devices_up = array();
|
||||
$count = 0;
|
||||
$down = 0;
|
||||
// FIXME - doesn't handle sysLocation override.
|
||||
foreach (dbFetchRows("SELECT * FROM devices WHERE location = ?", array($location)) as $device)
|
||||
{
|
||||
$devices[] = $device['hostname'];
|
||||
|
Reference in New Issue
Block a user