From dca4db9d4dffb7840885abf20d50154ed72462a0 Mon Sep 17 00:00:00 2001 From: redmatrix Date: Sat, 24 Sep 2016 05:15:06 -0700 Subject: convert oembed tools to use json arrays rather than json objects --- include/bbcode.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'include/bbcode.php') diff --git a/include/bbcode.php b/include/bbcode.php index 70c75e5c4..45dd5ef24 100644 --- a/include/bbcode.php +++ b/include/bbcode.php @@ -15,7 +15,7 @@ function tryoembed($match) { $o = oembed_fetch_url($url); - if ($o->type == 'error') + if ($o['type'] == 'error') return $match[0]; $html = oembed_format_object($o); -- cgit v1.2.3