Rerun of last php 7.2 count() buf.
authorJoe Hunt <joe.hunt.consulting@gmail.com>
Sun, 16 Dec 2018 15:12:38 +0000 (16:12 +0100)
committerJoe Hunt <joe.hunt.consulting@gmail.com>
Sun, 16 Dec 2018 15:12:38 +0000 (16:12 +0100)
includes/ui/ui_globals.inc

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