mirror of
https://github.com/stylersnico/librenms.git
synced 2026-07-28 08:02:41 +02:00
more smokeping
git-svn-id: http://www.observium.org/svn/observer/trunk@2704 61d68cd4-352d-0410-923a-c4978735b2b8
This commit is contained in:
+2
-2
@@ -275,7 +275,7 @@ function getifhost($id)
|
||||
function gethostbyid($id)
|
||||
{
|
||||
global $cache;
|
||||
|
||||
|
||||
if (isset($cache['devices']['id'][$id]['hostname']))
|
||||
{
|
||||
$hostname = $cache['devices']['id'][$id]['hostname'];
|
||||
@@ -284,7 +284,7 @@ function gethostbyid($id)
|
||||
{
|
||||
$hostname = dbFetchCell("SELECT `hostname` FROM `devices` WHERE `device_id` = ?", array($id));
|
||||
}
|
||||
|
||||
|
||||
return $hostname;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user