diff options
Diffstat (limited to 'includes/module.inc')
-rw-r--r-- | includes/module.inc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/includes/module.inc b/includes/module.inc index aa631faec..9033078c3 100644 --- a/includes/module.inc +++ b/includes/module.inc @@ -13,7 +13,7 @@ function module_iterate($function, $argument = "") { // invoke hook $hook of module $name with optional arguments: function module_invoke($name, $hook, $argument = "") { $function = $name ."_". $hook; - if (function_exists($function)) return $function($argument); + return function_exists($function) ? $function($argument) : $argument; } // return true if module $name supports hook $hook, and false otherwise: |