diff --git a/www/searchutil.php b/www/searchutil.php index f1f08040..f41fb80a 100644 --- a/www/searchutil.php +++ b/www/searchutil.php @@ -285,15 +285,8 @@ function doSearch($db, $term, $searchType, $sortby, $limit, $browse) $baseWhere = ""; $groupBy = ""; $baseOrderBy = ""; - if ($browse && ($sortby == "" || $sortby == "ratu" || $sortby == "ratd" || $sortby == "rcu")) { - // when sorting by highest/lowest/most ratings, we can optimize by - // fetching the top N from the gameRatingsView - $tableList = "games - join ".getGameRatingsView($db)." on games.id = gameid"; - } else { - $tableList = "games - left join ".getGameRatingsView($db)." on games.id = gameid"; - } + $tableList = "games + join ".getGameRatingsView($db)." on games.id = gameid"; $matchCols = "title, author, `desc`, tags"; $likeCol = "title"; $summaryDesc = "Games";