Pman.php
authorAlan Knowles <alan@roojs.com>
Thu, 19 Jul 2018 03:17:34 +0000 (11:17 +0800)
committerAlan Knowles <alan@roojs.com>
Thu, 19 Jul 2018 03:17:34 +0000 (11:17 +0800)
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();