From 87a6afbbd726c859a8773af33e37723a11f8ddce Mon Sep 17 00:00:00 2001 From: Kjartan Mannes Date: Mon, 30 Sep 2002 08:55:45 +0000 Subject: - fixed a bug in module_invoke_all , it will now also add 0's to the result array. Thanks Moshe. (Didn't I commit this already?) --- includes/module.inc | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'includes') diff --git a/includes/module.inc b/includes/module.inc index b5453b800..030bdeea2 100644 --- a/includes/module.inc +++ b/includes/module.inc @@ -27,7 +27,8 @@ function module_invoke_all($hook, $a1 = NULL, $a2 = NULL, $a3 = NULL, $a4 = NULL $return = array(); foreach (module_list() as $name) { if (module_hook($name, $hook)) { - if ($result = module_invoke($name, $hook, $a1, $a2, $a3, $a4)) { + $result = module_invoke($name, $hook, $a1, $a2, $a3, $a4); + if (isset($result)) { $return = array_merge($return, $result); } } -- cgit v1.2.3