mirror of
https://github.com/friendica/friendica
synced 2024-12-23 09:20:17 +00:00
Avoid a notice
This commit is contained in:
parent
bdc07b4213
commit
cbee91a61b
1 changed files with 1 additions and 1 deletions
|
@ -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'];
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue