projects
/
Pman.Base
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
ea4aa75
)
Pman/Roo.php
author
leon
<leon@roojs.com>
Tue, 2 Aug 2022 05:00:47 +0000
(13:00 +0800)
committer
leon
<leon@roojs.com>
Tue, 2 Aug 2022 05:00:47 +0000
(13:00 +0800)
Pman/Roo.php
patch
|
blob
|
history
diff --git
a/Pman/Roo.php
b/Pman/Roo.php
index
dd6aba7
..
2e1ac28
100644
(file)
--- a/
Pman/Roo.php
+++ b/
Pman/Roo.php
@@
-279,7
+279,7
@@
class Pman_Roo extends Pman
$fake_limit = false;
$fake_limit = false;
- if (!empty($_REQUEST['_distinct']) &&
!isset($_REQUEST['_no_count']
) && $total < 400) {
+ if (!empty($_REQUEST['_distinct']) &&
isset($total
) && $total < 400) {
$fake_limit = true;
}
$fake_limit = true;
}
@@
-311,7
+311,9
@@
class Pman_Roo extends Pman
if (!empty($_REQUEST['query']['add_blank'])) {
$ret[] = array( 'id' => 0, 'name' => '----');
if (!empty($_REQUEST['query']['add_blank'])) {
$ret[] = array( 'id' => 0, 'name' => '----');
- $total+=1;
+ if(isset($total)) {
+ $total+=1;
+ }
}
$rooar = method_exists($x, 'toRooArray');
}
$rooar = method_exists($x, 'toRooArray');