diff --git a/src/Model/Item.php b/src/Model/Item.php index 0ca1138f9e..b7267428ab 100644 --- a/src/Model/Item.php +++ b/src/Model/Item.php @@ -2864,7 +2864,7 @@ class Item 'mime' => $attachment['mimetype'], ], ]); - if ($item['post-type'] == Item::PT_VIDEO) { + if (($item['post-type'] ?? null) == Item::PT_VIDEO) { $leading .= $media; } else { $trailing .= $media;