From: Michael Vogel Date: Tue, 22 Mar 2016 22:24:07 +0000 (+0100) Subject: Bugfix: Avoid warning with non object OEmbed data X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=ab0325b9a9f3de95df16e2baaefb45aadbaaf240;p=friendica.git Bugfix: Avoid warning with non object OEmbed data --- diff --git a/include/bbcode.php b/include/bbcode.php index c1156e3afe..8545b2ff82 100644 --- a/include/bbcode.php +++ b/include/bbcode.php @@ -311,6 +311,9 @@ function tryoembed($match){ $o = oembed_fetch_url($url); + if (!is_object($o)) + return $match[0]; + if (isset($match[2])) $o->title = $match[2];