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:
Adam Amstrong
2012-05-28 17:43:08 +00:00
parent 74f3d0c78a
commit 5b5cb47563

View File

@@ -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'];