2022.09-rc
Michael 2019-08-05 16:48:58 +00:00
rodzic bdc07b4213
commit cbee91a61b
1 zmienionych plików z 1 dodań i 1 usunięć

Wyświetl plik

@ -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'];
}
}