From af7d8ebeed4e2847cae49d1e31cf7af45c1c5eae Mon Sep 17 00:00:00 2001 From: Dries Buytaert Date: Sun, 15 Jul 2001 16:56:44 +0000 Subject: - Various updates, mostly related to our RDF/RSS backend. --- includes/module.inc | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'includes') 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): -- cgit v1.2.3