Commit 769a31f2 authored by Kjartan's avatar Kjartan
Browse files

module.inc

- Fixed bug reported by Remco.
parent 5ed06627
......@@ -11,7 +11,7 @@ function module_iterate($function, $argument = "") {
}
// invoke hook $hook of module $name with optional arguments:
function module_invoke($name, $hook, $a1 = 0, $a2 = 0) {
function module_invoke($name, $hook, $a1 = NULL, $a2 = NULL) {
$function = $name ."_". $hook;
if (function_exists($function)) {
return $function($a1, $a2);
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment