From: leon Date: Tue, 2 Aug 2022 04:59:04 +0000 (+0800) Subject: Pman/Roo.php X-Git-Url: http://git.roojs.org/?p=Pman.Base;a=commitdiff_plain;h=ea4aa758058f5abee170f94154d49b45dbf29ad6 Pman/Roo.php --- 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; }