]> git.mxchange.org Git - friendica.git/commitdiff
Fixes notice "Undefined index: text"
authorMichael <heluecht@pirati.ca>
Sun, 20 Sep 2020 07:45:19 +0000 (07:45 +0000)
committerMichael <heluecht@pirati.ca>
Sun, 20 Sep 2020 07:45:19 +0000 (07:45 +0000)
src/Content/PageInfo.php

index d301c4d04d729352c58d932b698dddd0a3d623dc..8a2ee9f9d995727792402e342dd8cb8d4cf60511 100644 (file)
@@ -163,7 +163,7 @@ class PageInfo
                        }
                }
 
-               $text .= ']' . $data['text'] . '[/attachment]';
+               $text .= ']' . $data['text'] ?? '' . '[/attachment]';
 
                $hashtags = '';
                if (!empty($data['keywords'])) {