summaryrefslogtreecommitdiff
path: root/includes
diff options
context:
space:
mode:
authorDries Buytaert <dries@buytaert.net>2001-07-15 16:56:44 +0000
committerDries Buytaert <dries@buytaert.net>2001-07-15 16:56:44 +0000
commitaf7d8ebeed4e2847cae49d1e31cf7af45c1c5eae (patch)
treed2607f24ca2529e703dd7c4108af0008d500c7c6 /includes
parent18f2a5e38a7b329ffa523a23580efec8b1d177da (diff)
downloadbrdo-af7d8ebeed4e2847cae49d1e31cf7af45c1c5eae.tar.gz
brdo-af7d8ebeed4e2847cae49d1e31cf7af45c1c5eae.tar.bz2
- Various updates, mostly related to our RDF/RSS backend.
Diffstat (limited to 'includes')
-rw-r--r--includes/module.inc4
1 files changed, 3 insertions, 1 deletions
diff --git a/includes/module.inc b/includes/module.inc
index 475fe8370..38deae940 100644
--- a/includes/module.inc
+++ b/includes/module.inc
@@ -13,7 +13,9 @@ function module_iterate($function, $argument = "") {
// invoke hook $hook of module $name with optional arguments:
function module_invoke($name, $hook, $a1 = 0, $a2 = 0) {
$function = $name ."_". $hook;
- return function_exists($function) ? $function($a1, $a2) : 0;
+ if (function_exists($function)) {
+ return $function($a1, $a2);
+ }
}
// return array of module names (includes lazy module loading):