Browse Source

Use the correct var name when logging an error

Signed-off-by: Suki <[email protected]>
Suki 10 years ago
parent
commit
5af9875b0a
1 changed files with 2 additions and 2 deletions
  1. 2 2
      Sources/Subs.php

+ 2 - 2
Sources/Subs.php

@@ -4088,10 +4088,10 @@ function call_integration_hook($hook, $parameters = array())
 			$results[$function] = call_user_func_array($call, $parameters);
 
 		// Whatever it was suppose to call, it failed :(
-		elseif (!empty($func) && !empty($absPath))
+		elseif (!empty($function) && !empty($absPath))
 		{
 			loadLanguage('Errors');
-			log_error(sprintf($txt['hook_fail_call_to'], $func, $absPath), 'general');
+			log_error(sprintf($txt['hook_fail_call_to'], $function, $absPath), 'general');
 		}
 	}