Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Postgres limit fix

  • Loading branch information...
commit a918234e914c4d1e3e240d241cedbeb330d7d25a 1 parent 11a876e
paca70 authored
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";
Please sign in to comment.
Something went wrong with that request. Please try again.