mirror of
https://github.com/librenms/librenms.git
synced 2024-10-07 16:52:45 +00:00
- BUGFIX: getidbyname() did not pass parameters to MySQL correctly.
- Restructured sysContact and sysLocation "not set" code. - Do not display "SNMP Location" when empty or unset. git-svn-id: http://www.observium.org/svn/observer/trunk@2299 61d68cd4-352d-0410-923a-c4978735b2b8
This commit is contained in:
@@ -182,7 +182,7 @@ function getifdescrbyid($id)
|
||||
|
||||
function getidbyname($domain)
|
||||
{
|
||||
return dbFetchCell("SELECT `device_id` FROM `devices` WHERE `hostname` = ?", mres($domain));
|
||||
return dbFetchCell("SELECT `device_id` FROM `devices` WHERE `hostname` = ?", array($domain));
|
||||
}
|
||||
|
||||
function gethostosbyid($id)
|
||||
|
||||
Reference in New Issue
Block a user