From a42217eae4b503a1b7c1d9987b66c1ae5aa6afe8 Mon Sep 17 00:00:00 2001 From: Michael Date: Sun, 20 Sep 2020 07:45:19 +0000 Subject: [PATCH] Fixes notice "Undefined index: text" --- src/Content/PageInfo.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Content/PageInfo.php b/src/Content/PageInfo.php index d301c4d04d..8a2ee9f9d9 100644 --- a/src/Content/PageInfo.php +++ b/src/Content/PageInfo.php @@ -163,7 +163,7 @@ class PageInfo } } - $text .= ']' . $data['text'] . '[/attachment]'; + $text .= ']' . $data['text'] ?? '' . '[/attachment]'; $hashtags = ''; if (!empty($data['keywords'])) {