|
|
@ -537,7 +537,7 @@ function create_page_browser($idxfield, $querypart) {
|
|
|
|
$page_size_zerobase = $page_size - 1;
|
|
|
|
$page_size_zerobase = $page_size - 1;
|
|
|
|
$query = "
|
|
|
|
$query = "
|
|
|
|
SELECT * FROM (
|
|
|
|
SELECT * FROM (
|
|
|
|
SELECT $idxfield AS label, @row := @row + 1 AS row $querypart
|
|
|
|
SELECT $idxfield AS label, @row := @row + 1 AS 'row' $querypart
|
|
|
|
) idx WHERE MOD(idx.row, $page_size) IN (0,$page_size_zerobase) OR idx.row = $count_results
|
|
|
|
) idx WHERE MOD(idx.row, $page_size) IN (0,$page_size_zerobase) OR idx.row = $count_results
|
|
|
|
";
|
|
|
|
";
|
|
|
|
|
|
|
|
|
|
|
|