From: Michael Date: Wed, 2 Jun 2021 17:43:30 +0000 (+0000) Subject: Fix "Undefined index: post-type in .../src/Model/Item.php on line 2888" X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=5df1b59bb3c29d9dd857fa8b979ab2b40334f71a;p=friendica.git Fix "Undefined index: post-type in .../src/Model/Item.php on line 2888" --- diff --git a/src/Model/Item.php b/src/Model/Item.php index 7bc8270a17..2b57557ca8 100644 --- a/src/Model/Item.php +++ b/src/Model/Item.php @@ -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;