From: Hypolite Petovan Date: Mon, 20 Jun 2022 18:34:02 +0000 (-0400) Subject: Ensure parameter 4 of Post\Media::splitAttachment is a boolean value X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=88eacbf66e34ed8d73103a230ea44bfac739df84;p=friendica.git Ensure parameter 4 of Post\Media::splitAttachment is a boolean value --- diff --git a/src/Model/Item.php b/src/Model/Item.php index 1e3326e285..7acac695f1 100644 --- a/src/Model/Item.php +++ b/src/Model/Item.php @@ -2831,7 +2831,8 @@ class Item $shared_uri_id = 0; $shared_links = []; } - $attachments = Post\Media::splitAttachments($item['uri-id'], $item['guid'] ?? '', $shared_links, $item['has-media']); + + $attachments = Post\Media::splitAttachments($item['uri-id'], $item['guid'] ?? '', $shared_links, $item['has-media'] ?? false); $item['body'] = self::replaceVisualAttachments($attachments, $item['body'] ?? ''); $item['body'] = preg_replace("/\s*\[attachment .*?\].*?\[\/attachment\]\s*/ism", "\n", $item['body']);