Skip to content

Commit

Permalink
Improve compatibility with other RDBMS
Browse files Browse the repository at this point in the history
  • Loading branch information
rledisez committed Jun 23, 2009
1 parent e13cf75 commit 04f3451
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion modules/search/helpers/search.php
Expand Up @@ -45,7 +45,7 @@ static function search($q, $limit, $offset) {
"WHERE MATCH({search_records}.`data`) AGAINST ('$q' IN BOOLEAN MODE) " .
$access_sql .
"ORDER BY `score` DESC " .
"LIMIT $offset, $limit";
"LIMIT $limit OFFSET $offset";

return array($count, new ORM_Iterator(ORM::factory("item"), $db->query($query)));
}
Expand Down

0 comments on commit 04f3451

Please sign in to comment.