X-Git-Url: https://delta.frontaccounting.com/gitweb/?a=blobdiff_plain;f=includes%2Fui%2Fui_globals.inc;h=4c14995855fbf119f3012f7e3120b688fa9f93ae;hb=78e85d9a746e57dd04989bd7a889e6dee79301e0;hp=e8fd2b44cffbdc42101f9f62a559cf64988e4ff5;hpb=ebc600101ceab69c06eac4b1bd4d1782af45de05;p=fa-stable.git diff --git a/includes/ui/ui_globals.inc b/includes/ui/ui_globals.inc index e8fd2b44..4c149958 100644 --- a/includes/ui/ui_globals.inc +++ b/includes/ui/ui_globals.inc @@ -62,8 +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); +} //-------------------------------------------------------------------------------------- -?> \ No newline at end of file