projects
/
Pman.Base
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
9f2c835
)
Pman.php
author
Alan Knowles
<alan@roojs.com>
Thu, 19 Jul 2018 03:17:34 +0000
(11:17 +0800)
committer
Alan Knowles
<alan@roojs.com>
Thu, 19 Jul 2018 03:17:34 +0000
(11:17 +0800)
Pman.php
patch
|
blob
|
history
diff --git
a/Pman.php
b/Pman.php
index
1b1feaf
..
951d50f
100644
(file)
--- a/
Pman.php
+++ b/
Pman.php
@@
-565,10
+565,7
@@
class Pman extends HTML_FlexyFramework_Page
{
// should do mobile checking???
if ($total == false) {
- //$total = count($ar);
- if ($ar instanceof \Countable || is_array($ar)) {
- $total = count($ar);
- }
+ $total = is_array($ar) ? count($ar) : 1;
}
$extra= $extra ? $extra : array();