From ea4aa758058f5abee170f94154d49b45dbf29ad6 Mon Sep 17 00:00:00 2001 From: leon Date: Tue, 2 Aug 2022 12:59:04 +0800 Subject: [PATCH] Pman/Roo.php --- Pman/Roo.php | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/Pman/Roo.php b/Pman/Roo.php index ef6bfee..dd6aba7 100644 --- a/Pman/Roo.php +++ b/Pman/Roo.php @@ -269,7 +269,9 @@ class Pman_Roo extends Pman } - $total = $xx->count($this->countWhat); + if (!isset($_REQUEST['_no_count'])) { + $total = $xx->count($this->countWhat); + } // sorting.. // // var_dump($total);exit; @@ -277,7 +279,7 @@ class Pman_Roo extends Pman $fake_limit = false; - if (!empty($_REQUEST['_distinct']) && $total < 400) { + if (!empty($_REQUEST['_distinct']) && !isset($_REQUEST['_no_count']) && $total < 400) { $fake_limit = true; } -- 2.39.2