X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=include%2Fbbcode.php;h=8545b2ff8253c9b29c9b71d87b8003a383623e3b;hb=1dda70d144bf86c6c83ed6fbbe2c438a7e1aac4a;hp=c1156e3afe323c6c80d6cb22248b22e71ae9859f;hpb=bc283a5316e7f58edd26a93d8811b30527d8100c;p=friendica.git 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];