Skip to content

Commit

Permalink
Codestyle
Browse files Browse the repository at this point in the history
  • Loading branch information
Thomas Hunziker committed Jan 12, 2017
1 parent 3d4e293 commit b4c4581
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion plugins/search/content/content.php
Original file line number Diff line number Diff line change
Expand Up @@ -262,7 +262,7 @@ public function onContentSearch($text, $phrase = '', $ordering = '', $areas = nu
->order($order);

// Join over Fields.
$query->join('LEFT', '#__fields_values AS fv ON fv.item_id = '. $query->castAsChar('a.id'))
$query->join('LEFT', '#__fields_values AS fv ON fv.item_id = ' . $query->castAsChar('a.id'))
->join('LEFT', '#__fields AS f ON f.id = fv.field_id')
->where('(fv.context IS NULL OR fv.context = ' . $db->q('com_content.article') . ')')
->where('(f.state IS NULL OR f.state = 1)')
Expand Down

0 comments on commit b4c4581

Please sign in to comment.