projects
/
Pman.Base
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
61cabfa
)
Pman.php
author
benny
<benny@roojs.com>
Wed, 18 Jul 2018 07:19:35 +0000
(15:19 +0800)
committer
benny
<benny@roojs.com>
Wed, 18 Jul 2018 07:19:35 +0000
(15:19 +0800)
Pman.php
patch
|
blob
|
history
diff --git
a/Pman.php
b/Pman.php
index
5a70b66
..
ba89316
100644
(file)
--- a/
Pman.php
+++ b/
Pman.php
@@
-565,7
+565,11
@@
class Pman extends HTML_FlexyFramework_Page
{
// should do mobile checking???
if ($total == false) {
- $total = count($ar);
+ //$total = count($ar);
+ if ($ar instanceof \Countable || is_array($ar)) {
+ $total = count($ar);
+
+ }
}
$extra= $extra ? $extra : array();