]> git.mxchange.org Git - friendica.git/commitdiff
oembed: There seems to be some bug with ombed (maybe passing a non working url) This...
authorMichael Vogel <icarus@dabo.de>
Mon, 3 Feb 2014 22:06:12 +0000 (23:06 +0100)
committerMichael Vogel <icarus@dabo.de>
Mon, 3 Feb 2014 22:06:12 +0000 (23:06 +0100)
include/oembed.php

index 982f659d8e0ce1753a9f4ebc8b1d79cf36ba9a5f..ee042f8ce97a5869a9cd766d66d6580484102bbe 100755 (executable)
@@ -62,6 +62,10 @@ function oembed_fetch_url($embedurl){
        }
 
        $j = json_decode($txt);
+
+       if (!is_object($j))
+               return false;
+
        $j->embedurl = $embedurl;
        return $j;
 }