git-svn-id: http://www.observium.org/svn/observer/trunk@2336 61d68cd4-352d-0410-923a-c4978735b2b8
This commit is contained in:
Adam Amstrong
2011-05-16 12:48:50 +00:00
parent d9439aaf65
commit fc40257da9
18 changed files with 125 additions and 125 deletions

View File

@@ -44,11 +44,9 @@ if ($ports['total'])
echo(' <div style="margin: 8px; font-size: 11px; font-weight: bold;">');
$sql = "SELECT * FROM ports WHERE `device_id` = '" . $device['device_id'] . "' AND deleted != '1'";
$query = mysql_query($sql);
$ifsep = "";
while ($data = mysql_fetch_assoc($query))
foreach (dbFetchRows("SELECT * FROM `ports` WHERE device_id = ? AND `deleted` != '1'", array($device['device_id'])) as $data)
{
$data = ifNameDescr($data);
$data = array_merge($data, $device);
@@ -61,4 +59,4 @@ if ($ports['total'])
echo("</div>");
}
?>
?>