mirror of
https://github.com/postfixadmin/postfixadmin.git
synced 2024-09-19 19:22:14 +02:00
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
This commit is contained in:
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…
Reference in New Issue
Block a user