Fix some small errors!

git-svn-id: http://www.observium.org/svn/observer/trunk@112 61d68cd4-352d-0410-923a-c4978735b2b8
This commit is contained in:
Adam Amstrong
2007-06-24 16:45:18 +00:00
parent 71894044e1
commit 5ee8a32457
2 changed files with 10 additions and 7 deletions

View File

@@ -2,7 +2,7 @@
echo("<div style='font-family: courier, serif; margin: 10px';><strong>" . $device['sysDescr'] . "</strong></div>");
$uptime = mysql_result(mysql_query("SELECT `attrib_value` FROM `devices_attribs` WHERE `device_id` = '" . $device['device_id'] . "' AND `attrib_type` = 'uptime'"), 0);
$uptime = @mysql_result(mysql_query("SELECT `attrib_value` FROM `devices_attribs` WHERE `device_id` = '" . $device['device_id'] . "' AND `attrib_type` = 'uptime'"), 0);
# if(strtolower($device['os']) == "ios") {
echo("
@@ -14,12 +14,15 @@
<tr>
<td class=list-bold>Hardware</td>
<td>" . $device['hardware']. "</td>
</tr>
<tr>
</tr>");
if($uptime) {
echo("<tr>
<td class=list-bold>Uptime</td>
<td>" . formatUptime($uptime) . "</td>
</tr>
</tr>");
}
echo("
</table>");