Bugfix: Avoid warning with non object OEmbed data
This commit is contained in:
parent
0bcd6886f0
commit
791ce24cd5
1 changed files with 3 additions and 0 deletions
|
@ -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];
|
||||
|
||||
|
|
Loading…
Reference in a new issue