X-Git-Url: https://delta.frontaccounting.com/gitweb/?a=blobdiff_plain;f=includes%2Fui%2Fui_globals.inc;h=4c14995855fbf119f3012f7e3120b688fa9f93ae;hb=d32bf132413c22c5a19966160fcd574346f63b24;hp=15601c9f6915d1113490dacfccdd6d89d0bc2c04;hpb=d1babda7c01b314d35fb89f2d195553b55936532;p=fa-stable.git diff --git a/includes/ui/ui_globals.inc b/includes/ui/ui_globals.inc index 15601c9f..4c149958 100644 --- a/includes/ui/ui_globals.inc +++ b/includes/ui/ui_globals.inc @@ -62,7 +62,10 @@ function get_global_curr_code() return $_SESSION['wa_global_curr_code']; } - +function count_array($array) +{ + return (is_array($array)) ? count($array) : (($array === NULL) ? 0 : 1); +} //--------------------------------------------------------------------------------------