Updated device_by_id_cache() to convert IP column

This commit is contained in:
laf
2015-12-07 02:22:44 +00:00
parent 3f8ecc5f73
commit 6f44b19681

View File

@ -315,6 +315,7 @@ function device_by_id_cache($device_id, $refresh = '0') {
}
else {
$device = dbFetchRow("SELECT * FROM `devices` WHERE `device_id` = ?", array($device_id));
$device['ip'] = inet6_ntop($device['ip']);
$cache['devices']['id'][$device_id] = $device;
}
return $device;