X-Git-Url: https://delta.frontaccounting.com/gitweb/?a=blobdiff_plain;f=includes%2Fui%2Fui_globals.inc;h=4c14995855fbf119f3012f7e3120b688fa9f93ae;hb=75564761d1429129282bd04ab00575c5e80fe4c2;hp=7886e24b90618f3e8cf36ae302ae1890360b593d;hpb=1cb30c52557b88f88e798febf995836fc2638c8c;p=fa-stable.git 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); } //--------------------------------------------------------------------------------------