Check if already an array before exploding.

This commit is contained in:
jgen 2017-05-13 18:01:31 -07:00
parent f492c6c2c3
commit 7ebe301ffd

View file

@ -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) {