From 7894b9e7e755779ccc46b2c4c22633c3da4b90f2 Mon Sep 17 00:00:00 2001 From: Jakub Onderka Date: Thu, 21 Mar 2024 14:34:17 +0100 Subject: [PATCH] fix: [internal] Error handling for error message in AttachmentScan --- app/Model/AttachmentScan.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/Model/AttachmentScan.php b/app/Model/AttachmentScan.php index 2d6f0b837..fe455747e 100644 --- a/app/Model/AttachmentScan.php +++ b/app/Model/AttachmentScan.php @@ -258,7 +258,7 @@ class AttachmentScan extends AppModel $scanned++; } } catch (Exception $e) { - $this->logException("Could not scan attachment for $type {$attribute['Attribute']['id']}", $e, LOG_WARNING); + $this->logException("Could not scan attachment for $type {$attribute[$type]['id']}", $e, LOG_WARNING); $fails++; }