Fix "Undefined index: post-type in .../src/Model/Item.php on line 2888"

pull/10363/head
Michael 2021-06-02 17:43:30 +00:00
parent 86d56c7f57
commit 5df1b59bb3
1 changed files with 1 additions and 1 deletions

View File

@ -2885,7 +2885,7 @@ class Item
'mime' => $attachment['mimetype'],
],
]);
if ($item['post-type'] == Item::PT_AUDIO) {
if (($item['post-type'] ?? null) == Item::PT_AUDIO) {
$leading .= $media;
} else {
$trailing .= $media;