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++; }