From 88eacbf66e34ed8d73103a230ea44bfac739df84 Mon Sep 17 00:00:00 2001 From: Hypolite Petovan Date: Mon, 20 Jun 2022 14:34:02 -0400 Subject: [PATCH] Ensure parameter 4 of Post\Media::splitAttachment is a boolean value --- src/Model/Item.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/Model/Item.php b/src/Model/Item.php index 1e3326e28..7acac695f 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']);