From 7ebe301ffd45f0ccf0cbaa6549976934909c7cd5 Mon Sep 17 00:00:00 2001 From: jgen Date: Sat, 13 May 2017 18:01:31 -0700 Subject: [PATCH] Check if already an array before exploding. --- ext/ouroboros_api/main.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ext/ouroboros_api/main.php b/ext/ouroboros_api/main.php index 966e8bc9..f58190b2 100644 --- a/ext/ouroboros_api/main.php +++ b/ext/ouroboros_api/main.php @@ -500,7 +500,7 @@ class OuroborosAPI extends Extension } } $meta = array(); - $meta['tags'] = Tag::explode($post->tags); + $meta['tags'] = is_array($post->tags) ? $post->tags : Tag::explode($post->tags); $meta['source'] = $post->source; if (defined('ENABLED_EXTS')) { if (strstr(ENABLED_EXTS, 'rating') !== false) {