]> git.mxchange.org Git - friendica.git/commitdiff
Bugfix: Avoid warning with non object OEmbed data
authorMichael Vogel <icarus@dabo.de>
Tue, 22 Mar 2016 22:24:07 +0000 (23:24 +0100)
committerMichael Vogel <icarus@dabo.de>
Tue, 22 Mar 2016 22:24:07 +0000 (23:24 +0100)
include/bbcode.php

index c1156e3afe323c6c80d6cb22248b22e71ae9859f..8545b2ff8253c9b29c9b71d87b8003a383623e3b 100644 (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];