From: leon Date: Tue, 2 Aug 2022 05:00:47 +0000 (+0800) Subject: Pman/Roo.php X-Git-Url: http://git.roojs.org/?p=Pman.Base;a=commitdiff_plain;h=c9f30cf5ab8447acd8ef548d30fe3e280e801de2 Pman/Roo.php --- diff --git a/Pman/Roo.php b/Pman/Roo.php index dd6aba7..2e1ac28 100644 --- a/Pman/Roo.php +++ b/Pman/Roo.php @@ -279,7 +279,7 @@ class Pman_Roo extends Pman $fake_limit = false; - if (!empty($_REQUEST['_distinct']) && !isset($_REQUEST['_no_count']) && $total < 400) { + if (!empty($_REQUEST['_distinct']) && isset($total) && $total < 400) { $fake_limit = true; } @@ -311,7 +311,9 @@ class Pman_Roo extends Pman if (!empty($_REQUEST['query']['add_blank'])) { $ret[] = array( 'id' => 0, 'name' => '----'); - $total+=1; + if(isset($total)) { + $total+=1; + } } $rooar = method_exists($x, 'toRooArray');