Updated files pointing to invalid tables

This commit is contained in:
Neil Lathwood
2015-02-18 21:31:01 +00:00
parent 5e9e859272
commit 2159fd48fe
4 changed files with 7 additions and 9 deletions
+1 -3
View File
@@ -60,8 +60,6 @@ if (device_permitted($vars['device']) || $check_device == $vars['device'])
$health = dbFetchCell("SELECT COUNT(*) FROM storage WHERE device_id = '" . $device['device_id'] . "'") +
dbFetchCell("SELECT COUNT(sensor_id) FROM sensors WHERE device_id = '" . $device['device_id'] . "'") +
dbFetchCell("SELECT COUNT(*) FROM cempMemPool WHERE device_id = '" . $device['device_id'] . "'") +
dbFetchCell("SELECT COUNT(*) FROM cpmCPU WHERE device_id = '" . $device['device_id'] . "'") +
dbFetchCell("SELECT COUNT(*) FROM processors WHERE device_id = '" . $device['device_id'] . "'");
if ($health)
@@ -127,7 +125,7 @@ if (device_permitted($vars['device']) || $check_device == $vars['device'])
</li>');
}
if (@dbFetchCell("SELECT COUNT(accesspoint_id) FROM accesspoint WHERE device_id = '" . $device['device_id'] . "'") > '0')
if (@dbFetchCell("SELECT COUNT(accesspoint_id) FROM access_points WHERE device_id = '" . $device['device_id'] . "'") > '0')
{
echo('<li class="' . $select['accesspoints'] . '">
<a href="'.generate_device_url($device, array('tab' => 'accesspoints')). '">
+1 -1
View File
@@ -5,7 +5,7 @@ echo("<div style='margin: 0px;'><table border=0 cellspacing=0 cellpadding=5 widt
$i = "1";
$aps = dbFetchRows("SELECT * FROM `accesspoint` WHERE `device_id` = ? AND `deleted` = '0' ORDER BY `name`,`radio_number` ASC", array($device['device_id']));
$aps = dbFetchRows("SELECT * FROM `access_points` WHERE `device_id` = ? AND `deleted` = '0' ORDER BY `name`,`radio_number` ASC", array($device['device_id']));
echo("<div style='margin: 0px;'><table border=0 cellspacing=0 cellpadding=5 width=100%>");
foreach ($aps as $ap)
{