Merge pull request #2422 from annando/1603-oembed-object

Bugfix: Avoid warning with non object OEmbed data
This commit is contained in:
Tobias Diekershoff 2016-03-23 06:51:14 +01:00
commit 430be22bb9

View File

@ -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];