diff --git a/include/oembed.php b/include/oembed.php index 982f659d8e..ee042f8ce9 100755 --- a/include/oembed.php +++ b/include/oembed.php @@ -62,6 +62,10 @@ function oembed_fetch_url($embedurl){ } $j = json_decode($txt); + + if (!is_object($j)) + return false; + $j->embedurl = $embedurl; return $j; }