projects
/
fa-stable.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
1cb30c5
)
Rerun of last php 7.2 count() buf.
author
Joe Hunt
<joe.hunt.consulting@gmail.com>
Sun, 16 Dec 2018 15:12:38 +0000
(16:12 +0100)
committer
Joe Hunt
<joe.hunt.consulting@gmail.com>
Sun, 16 Dec 2018 15:12:38 +0000
(16:12 +0100)
includes/ui/ui_globals.inc
patch
|
blob
|
history
diff --git
a/includes/ui/ui_globals.inc
b/includes/ui/ui_globals.inc
index 7886e24b90618f3e8cf36ae302ae1890360b593d..4c14995855fbf119f3012f7e3120b688fa9f93ae 100644
(file)
--- a/
includes/ui/ui_globals.inc
+++ b/
includes/ui/ui_globals.inc
@@
-64,7
+64,7
@@
function get_global_curr_code()
function count_array($array)
{
-
return (is_array($array)) ? count($array) : 1
;
+
return (is_array($array)) ? count($array) : (($array === NULL) ? 0 : 1)
;
}
//--------------------------------------------------------------------------------------