oembed: There seems to be some bug with ombed (maybe passing a non working url) This small fix should avoid the error at this place and may directs to the source of the problem.

This commit is contained in:
Michael Vogel 2014-02-03 23:06:12 +01:00
parent 6c46c8333d
commit c2abf0aeea
1 changed files with 4 additions and 0 deletions

View File

@ -62,6 +62,10 @@ function oembed_fetch_url($embedurl){
} }
$j = json_decode($txt); $j = json_decode($txt);
if (!is_object($j))
return false;
$j->embedurl = $embedurl; $j->embedurl = $embedurl;
return $j; return $j;
} }