Feature 5388: Print Invoices (documents) list gets too long. Fixed by default 180...
[fa-stable.git] / includes / ui / ui_globals.inc
index 15601c9f6915d1113490dacfccdd6d89d0bc2c04..4c14995855fbf119f3012f7e3120b688fa9f93ae 100644 (file)
@@ -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);
+}
 
 //--------------------------------------------------------------------------------------