Skip to content

Commit

Permalink
Update plugins/finder/tags/tags.php
Browse files Browse the repository at this point in the history
Co-authored-by: Quy <quy@fluxbb.org>
  • Loading branch information
Hackwar and Quy committed Feb 6, 2022
1 parent 8626ec2 commit 0cb2eb5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion plugins/finder/tags/tags.php
Expand Up @@ -261,7 +261,7 @@ protected function index(Result $item)
}

// Add the author taxonomy data.
if (in_array('author', $taxonomies) && !empty($item->author) || !empty($item->created_by_alias))
if (in_array('author', $taxonomies) && (!empty($item->author) || !empty($item->created_by_alias)))
{
$item->addTaxonomy('Author', !empty($item->created_by_alias) ? $item->created_by_alias : $item->author);
}
Expand Down

0 comments on commit 0cb2eb5

Please sign in to comment.