Skip to content
Browse files

Postgres limit fix

  • Loading branch information...
1 parent 11a876e commit a918234e914c4d1e3e240d241cedbeb330d7d25a paca70 committed May 5, 2003
Showing with 1 addition and 1 deletion.
  1. +1 −1 lib/datalib.php
View
2 lib/datalib.php
@@ -961,7 +961,7 @@ function get_users_listing($sort, $dir="ASC", $page=1, $recordsperpage=20, $sear
$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 a918234

Please sign in to comment.
Something went wrong with that request. Please try again.