From cbee91a61b7b066b7c0706ecd51c2893d626ea19 Mon Sep 17 00:00:00 2001 From: Michael Date: Mon, 5 Aug 2019 16:48:58 +0000 Subject: [PATCH] Avoid a notice --- src/Content/Text/BBCode.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Content/Text/BBCode.php b/src/Content/Text/BBCode.php index 668d6e6236..a5cb78727c 100644 --- a/src/Content/Text/BBCode.php +++ b/src/Content/Text/BBCode.php @@ -246,7 +246,7 @@ class BBCode extends BaseObject $post['images'][] = ['url' => str_replace('-1.', '-0.', $picture[1]), 'description' => $picture[2]]; } } - if (!empty($post['images'][0]['description'])) { + if (!empty($post['images']) && !empty($post['images'][0]['description'])) { $post['image_description'] = $post['images'][0]['description']; } }