]> git.mxchange.org Git - friendica.git/blobdiff - src/Content/OEmbed.php
Several more warnings ... (#5340)
[friendica.git] / src / Content / OEmbed.php
index b09fd2249535a2914548bf3ef99020b279335aa8..360a0dc4899439949d7addf0de0b99bcf088d469 100644 (file)
@@ -108,7 +108,7 @@ class OEmbed
                                $txt = '{"type":"error"}';
                        } else { //save in cache
                                $j = json_decode($txt);
-                               if ($j->type != "error") {
+                               if (!empty($j->type) && $j->type != "error") {
                                        dba::insert('oembed', [
                                                'url' => normalise_link($embedurl),
                                                'maxwidth' => $a->videowidth,