mirror of
https://github.com/librenms/librenms.git
synced 2024-10-07 16:52:45 +00:00
fixed the interface display in event log, plus some html fixes
git-svn-id: http://www.observium.org/svn/observer/trunk@624 61d68cd4-352d-0410-923a-c4978735b2b8
This commit is contained in:
@@ -51,6 +51,12 @@ function getifindexbyid($id) {
|
||||
}
|
||||
|
||||
function getifbyid($id) {
|
||||
$sql = mysql_query("SELECT * FROM `interfaces` WHERE `interface_id` = '$id'");
|
||||
$result = @mysql_fetch_array($sql);
|
||||
return $result;
|
||||
}
|
||||
|
||||
function getifdescrbyid($id) {
|
||||
$sql = mysql_query("SELECT `ifDescr` FROM `interfaces` WHERE `interface_id` = '$id'");
|
||||
$result = @mysql_result($sql, 0);
|
||||
return $result;
|
||||
|
Reference in New Issue
Block a user