Bugfix: Avoid warning with non object OEmbed data

This commit is contained in:
Michael Vogel 2016-03-22 23:24:07 +01:00 committed by Roland Haeder
parent 0f71d0bd07
commit ab0325b9a9
No known key found for this signature in database
GPG Key ID: B72F8185C6C7BD78

View File

@ -311,6 +311,9 @@ function tryoembed($match){
$o = oembed_fetch_url($url); $o = oembed_fetch_url($url);
if (!is_object($o))
return $match[0];
if (isset($match[2])) if (isset($match[2]))
$o->title = $match[2]; $o->title = $match[2];