]> git.mxchange.org Git - friendica.git/blobdiff - src/Content/OEmbed.php
Some more notices removed
[friendica.git] / src / Content / OEmbed.php
index a1fe4f30649b107e118ab8c87b09fa781863f0c2..0c05b010866dd331d04785fcdcf136e8a7d2de81 100644 (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'];