From 0406df769161092e94b8c7a15fe67eee8865cf07 Mon Sep 17 00:00:00 2001 From: Tozz Date: Fri, 19 Jan 2024 14:54:21 +0100 Subject: [PATCH] bug - Fix API bug causing note updates to fail (#15766) --- includes/common.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/includes/common.php b/includes/common.php index 81aea0d903..df5b9f011d 100644 --- a/includes/common.php +++ b/includes/common.php @@ -291,7 +291,7 @@ function zeropad($num, $length = 2) function set_dev_attrib($device, $attrib_type, $attrib_value) { - return DeviceCache::get((int) $device['device_id'])->setAttrib($attrib_type, $attrib_value); + return DeviceCache::get((int) $device)->setAttrib($attrib_type, $attrib_value); } function get_dev_attribs($device_id)