From: Michael Vogel Date: Mon, 3 Feb 2014 22:06:12 +0000 (+0100) Subject: oembed: There seems to be some bug with ombed (maybe passing a non working url) This... X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=c2abf0aeeab6aa15545bea436fc68ad3d997f0bb;p=friendica.git 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. --- 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; }