From: Michael Date: Sun, 20 Sep 2020 07:45:19 +0000 (+0000) Subject: Fixes notice "Undefined index: text" X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=a42217eae4b503a1b7c1d9987b66c1ae5aa6afe8;p=friendica.git Fixes notice "Undefined index: text" --- 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'])) {