Some things are easier than you might think...

functions.inc.php:
- create_page_browser(): Fix count() query for pgsql. Fixes
  https://sourceforge.net/tracker/?func=detail&aid=3292648&group_id=191583&atid=937964
- surprise: the query to actually generate the pagebrowser already works 
  with pgsql :-)


git-svn-id: https://svn.code.sf.net/p/postfixadmin/code/trunk@1392 a1433add-5e2c-0410-b055-b7f2511e0802
pull/2/head
Christian Boltz 13 years ago
parent 47bc9bb2ad
commit a6a3483569

@ -478,7 +478,7 @@ function create_page_browser($idxfield, $querypart) {
}
# get number of rows
$query = "SELECT count(*) as counter $querypart";
$query = "SELECT count(*) as counter FROM (SELECT $idxfield $querypart) AS tmp";
$result = db_query ($query);
if ($result['rows'] > 0) {
$row = db_array ($result['result']);

Loading…
Cancel
Save