Some more notices removed

This commit is contained in:
Michael 2018-07-29 04:04:23 +00:00
parent 489d3daa94
commit bc38420801
2 changed files with 5 additions and 1 deletions

View file

@ -152,7 +152,7 @@ class OEmbed
$oembed->description = $data['text'];
}
if (is_array($data['images'])) {
if (!empty($data['images'])) {
$oembed->thumbnail_url = $data['images'][0]['src'];
$oembed->thumbnail_width = $data['images'][0]['width'];
$oembed->thumbnail_height = $data['images'][0]['height'];