projects
/
fa-stable.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
[0005223] Fixed Asset Purchase, Direct Supplier Invoice: fixed invalid cost handling...
[fa-stable.git]
/
includes
/
ui
/
ui_globals.inc
diff --git
a/includes/ui/ui_globals.inc
b/includes/ui/ui_globals.inc
index e8fd2b44cffbdc42101f9f62a559cf64988e4ff5..4c14995855fbf119f3012f7e3120b688fa9f93ae 100644
(file)
--- 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'];
}
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