From: Joe Hunt Date: Sun, 16 Dec 2018 15:12:38 +0000 (+0100) Subject: Rerun of last php 7.2 count() buf. X-Git-Url: https://delta.frontaccounting.com/gitweb/?p=fa-stable.git;a=commitdiff_plain;h=9d80cf79e07e777e75bfa9ca4c1b5a8c64567a30 Rerun of last php 7.2 count() buf. --- diff --git a/includes/ui/ui_globals.inc b/includes/ui/ui_globals.inc index 7886e24b..4c149958 100644 --- a/includes/ui/ui_globals.inc +++ b/includes/ui/ui_globals.inc @@ -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); } //--------------------------------------------------------------------------------------