From ebb1516db10b18a5403229af9eaaa0d360b2c7db Mon Sep 17 00:00:00 2001 From: Tony Murray Date: Tue, 14 Feb 2017 17:04:55 -0600 Subject: [PATCH] Icon was updated to an empty variable because it was not set on the $device array() (#5893) --- includes/functions.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/includes/functions.php b/includes/functions.php index c25ef6c76f..aab0b2b8e1 100644 --- a/includes/functions.php +++ b/includes/functions.php @@ -1994,13 +1994,13 @@ function recordSnmpStatistic($stat, $start_time) return $runtime; } -function update_device_logo($device) +function update_device_logo(&$device) { $icon = getImageName($device, false); if ($icon != $device['icon']) { log_event('Device Icon changed ' . $device['icon'] . " => $icon", $device, 'system', 3); $device['icon'] = $icon; - $sql = dbUpdate(array('icon' => $icon), 'devices', 'device_id=?', array($device['device_id'])); + dbUpdate(array('icon' => $icon), 'devices', 'device_id=?', array($device['device_id'])); echo "Changed Icon! : $icon\n"; } }