Merge pull request #9631 from JakubOnderka/attachment-scan-error

fix: [internal] Error handling for error message in AttachmentScan
pull/9634/head
Jakub Onderka 2024-03-21 15:12:48 +01:00 committed by GitHub
commit 9fb1939b70
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 1 additions and 1 deletions

View File

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