summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRepox <storm@err0r.dk>2011-12-01 09:19:43 +0100
committerRepox <storm@err0r.dk>2011-12-01 09:19:43 +0100
commit71b78096d95fc8f5ab46686168acd702abb90dc9 (patch)
tree8ea699cedd7133faf6b3ad1dc72e70bd377ef9e4
parentff30be1c782a853b8c58f520214ac5079f273c42 (diff)
This fixes issue #725
-rw-r--r--system/database/DB_driver.php9
1 files changed, 8 insertions, 1 deletions
diff --git a/system/database/DB_driver.php b/system/database/DB_driver.php
index c2d57a833..9d92f2f87 100644
--- a/system/database/DB_driver.php
+++ b/system/database/DB_driver.php
@@ -1064,7 +1064,14 @@ class CI_DB_driver {
{
$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);
+ }
}
}