module.inc

- Fixed bug reported by Remco.
3.0.x
Kjartan Mannes 2001-08-23 10:22:50 +00:00
parent 5ed066278b
commit 769a31f239
1 changed files with 1 additions and 1 deletions

View File

@ -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);