Fixed Bug in count_array(), /includes/ui/ui_globals.inc.
authorJoe Hunt <joe.hunt.consulting@gmail.com>
Sun, 16 Dec 2018 07:32:32 +0000 (08:32 +0100)
committerJoe Hunt <joe.hunt.consulting@gmail.com>
Sun, 16 Dec 2018 07:32:32 +0000 (08:32 +0100)
includes/ui/ui_globals.inc

index ecb3ca4eaa111f78e202621f034fa80983155f22..7886e24b90618f3e8cf36ae302ae1890360b593d 100644 (file)
@@ -64,7 +64,7 @@ function get_global_curr_code()
 
 function count_array($array)
 {
-    return (is_array($array)) ? count($array) : 0;
+    return (is_array($array)) ? count($array) : 1;
 }
 
 //--------------------------------------------------------------------------------------