From 6f44b19681b02011822df90cd80780cbf7f09896 Mon Sep 17 00:00:00 2001 From: laf Date: Mon, 7 Dec 2015 02:22:44 +0000 Subject: [PATCH] Updated device_by_id_cache() to convert IP column --- includes/common.php | 1 + 1 file changed, 1 insertion(+) diff --git a/includes/common.php b/includes/common.php index d74a512a9d..04c681aaf1 100644 --- a/includes/common.php +++ b/includes/common.php @@ -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;