Skip to content

Commit

Permalink
more efficent query
Browse files Browse the repository at this point in the history
  • Loading branch information
ciaranmaher committed Sep 8, 2014
1 parent 6b7b50b commit 5f471b3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Post.php
Original file line number Diff line number Diff line change
Expand Up @@ -260,7 +260,7 @@ protected function taxonomy($query, $name, $slug)
"term_taxonomy{$postfix}.taxonomy",
"=",
$name
)->groupBy('posts.id');
)->distinct();

if (!is_array($slug)) {
return $query->where("terms{$postfix}.slug", $slug);
Expand Down

0 comments on commit 5f471b3

Please sign in to comment.