Permalink
Browse files

Bugfix for search courses in postgres

  • Loading branch information...
mjollnir_
mjollnir_ committed Nov 21, 2004
1 parent 9958e23 commit 461a4afe83fb56a41249de463ca9024c9c9f394d
Showing with 1 addition and 1 deletion.
  1. +1 −1 lib/datalib.php
View
@@ -1913,7 +1913,7 @@ function get_courses_search($searchterms, $sort="fullname ASC", $page=0, $record
$limit = "LIMIT $page,$recordsperpage";
break;
case "postgres7":
- $limit = "LIMIT $recordsperpage OFFSET ".($page * $recordsperpage);
+ $limit = "LIMIT $recordsperpage OFFSET ".$page;
break;
default:
$limit = "LIMIT $recordsperpage,$page";

0 comments on commit 461a4af

Please sign in to comment.