Bugfix: Avoid warning with non object OEmbed data

2022.09-rc
Michael Vogel 2016-03-22 23:24:07 +01:00
rodzic 0bcd6886f0
commit 791ce24cd5
1 zmienionych plików z 3 dodań i 0 usunięć

Wyświetl plik

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