From c2abf0aeeab6aa15545bea436fc68ad3d997f0bb Mon Sep 17 00:00:00 2001
From: Michael Vogel <icarus@dabo.de>
Date: Mon, 3 Feb 2014 23:06:12 +0100
Subject: [PATCH] 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.

---
 include/oembed.php | 4 ++++
 1 file changed, 4 insertions(+)

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;
 }
-- 
2.39.5