Browse files

This fixes issue #725

  • Loading branch information...
1 parent b9ad907 commit d92bd57f007e9561a37be8a8ccaf93a4f8948343 @Repox Repox committed Dec 1, 2011
Showing with 8 additions and 2 deletions.
  1. +8 −2 system/database/DB_driver.php
View
10 system/database/DB_driver.php
@@ -1015,8 +1015,14 @@ function call_function($function)
else
{
$args = (func_num_args() > 1) ? array_splice(func_get_args(), 1) : null;
-
- return call_user_func_array($function, $args);
+ if (is_null($args))
+ {
+ return call_user_func($function);
+ }
+ else
+ {
+ return call_user_func_array($function, $args);
+ }
}
}

0 comments on commit d92bd57

Please sign in to comment.