Pman.php
authorbenny <benny@roojs.com>
Wed, 18 Jul 2018 07:19:35 +0000 (15:19 +0800)
committerbenny <benny@roojs.com>
Wed, 18 Jul 2018 07:19:35 +0000 (15:19 +0800)
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();