Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

Postgres limit fix

  • Loading branch information...
commit a918234e914c4d1e3e240d241cedbeb330d7d25a 1 parent 11a876e
authored May 05, 2003

Showing 1 changed file with 1 addition and 1 deletion. Show diff stats Hide diff stats

  1. 2  lib/datalib.php
2  lib/datalib.php
@@ -961,7 +961,7 @@ function get_users_listing($sort, $dir="ASC", $page=1, $recordsperpage=20, $sear
961 961
              $limit = "LIMIT $page,$recordsperpage";
962 962
              break;
963 963
         case "postgres7":
964  
-             $limit = "LIMIT $recordsperpage OFFSET ".($page * $recordsperpage);
  964
+             $limit = "LIMIT $recordsperpage OFFSET ".($page);
965 965
              break;
966 966
         default: 
967 967
              $limit = "LIMIT $recordsperpage,$page";

0 notes on commit a918234

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