From 791ce24cd52d118391fd9c6a1b0a2a10efb6240f Mon Sep 17 00:00:00 2001 From: Michael Vogel Date: Tue, 22 Mar 2016 23:24:07 +0100 Subject: [PATCH] Bugfix: Avoid warning with non object OEmbed data --- include/bbcode.php | 3 +++ 1 file changed, 3 insertions(+) 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]; -- 2.39.5