projects
/
fa-stable.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Fixed php 7.2 count() compatibility and intval cast in number_format2 parameter 2.
[fa-stable.git]
/
includes
/
ui
/
ui_globals.inc
diff --git
a/includes/ui/ui_globals.inc
b/includes/ui/ui_globals.inc
index 15601c9f6915d1113490dacfccdd6d89d0bc2c04..ecb3ca4eaa111f78e202621f034fa80983155f22 100644
(file)
--- 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'];
}
return $_SESSION['wa_global_curr_code'];
}
-
+function count_array($array)
+{
+ return (is_array($array)) ? count($array) : 0;
+}
//--------------------------------------------------------------------------------------
//--------------------------------------------------------------------------------------