mirror of
https://github.com/librenms/librenms.git
synced 2024-10-07 16:52:45 +00:00
Merge pull request #2940 from laf/issue-2921
Updated device_by_id_cache() to convert IP column
This commit is contained in:
@ -315,6 +315,7 @@ function device_by_id_cache($device_id, $refresh = '0') {
|
|||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
$device = dbFetchRow("SELECT * FROM `devices` WHERE `device_id` = ?", array($device_id));
|
$device = dbFetchRow("SELECT * FROM `devices` WHERE `device_id` = ?", array($device_id));
|
||||||
|
$device['ip'] = inet6_ntop($device['ip']);
|
||||||
$cache['devices']['id'][$device_id] = $device;
|
$cache['devices']['id'][$device_id] = $device;
|
||||||
}
|
}
|
||||||
return $device;
|
return $device;
|
||||||
|
Reference in New Issue
Block a user