summaryrefslogtreecommitdiff
path: root/includes
diff options
context:
space:
mode:
authorKjartan Mannes <kjartan@2.no-reply.drupal.org>2002-09-30 08:55:45 +0000
committerKjartan Mannes <kjartan@2.no-reply.drupal.org>2002-09-30 08:55:45 +0000
commit87a6afbbd726c859a8773af33e37723a11f8ddce (patch)
tree43531c10afdfb50227e3b74aa2a7cfaefdcbcdd0 /includes
parent984dfaa7d8dbfbc7b410c33031d437f5335c66f8 (diff)
downloadbrdo-87a6afbbd726c859a8773af33e37723a11f8ddce.tar.gz
brdo-87a6afbbd726c859a8773af33e37723a11f8ddce.tar.bz2
- 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?)
Diffstat (limited to 'includes')
-rw-r--r--includes/module.inc3
1 files changed, 2 insertions, 1 deletions
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);
}
}