mirror of
https://github.com/postfixadmin/postfixadmin.git
synced 2024-09-19 19:22:14 +02:00
perhaps this will help https://github.com/postfixadmin/postfixadmin/issues/305
This commit is contained in:
parent
907bd7ee46
commit
9526e68e3e
@ -548,8 +548,11 @@ function create_page_browser($idxfield, $querypart, $sql_params = []) {
|
||||
}
|
||||
|
||||
if (db_sqlite()) {
|
||||
$bits = explode('.', $idxfield);
|
||||
$end = $bits[1];
|
||||
$end = $idxfield;
|
||||
if(strpos($idxfield, '.') !== false) {
|
||||
$bits = explode('.', $idxfield);
|
||||
$end = $bits[1];
|
||||
}
|
||||
$query = "
|
||||
WITH idx AS (SELECT * $querypart)
|
||||
SELECT $end AS label, (SELECT (COUNT(*) - 1) FROM idx t1 WHERE t1.$end <= t2.$end ) AS row
|
||||
|
Loading…
Reference in New Issue
Block a user