Skip to content

Commit

Permalink
Fix language filter query in mod_k2_comments
Browse files Browse the repository at this point in the history
  • Loading branch information
fevangelou committed Sep 25, 2018
1 parent cf10115 commit 145d7b0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion modules/mod_k2_comments/helper.php
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@ public static function getLatestComments(&$params)
}

if ($languageFilter) {
$query .= " AND i.language IN ({$languageFilter}) AND c.language IN ({$languageFilter})";
$query .= " AND i.language IN ({$languageFilter}) AND category.language IN ({$languageFilter})";
}

$query .= " GROUP BY i.id ORDER BY c.commentDate DESC";
Expand Down

0 comments on commit 145d7b0

Please sign in to comment.