commit | 71b78096d95fc8f5ab46686168acd702abb90dc9 | [log] [tgz] |
---|---|---|
author | Repox <storm@err0r.dk> | Thu Dec 01 09:19:43 2011 +0100 |
committer | Repox <storm@err0r.dk> | Thu Dec 01 09:19:43 2011 +0100 |
tree | 8ea699cedd7133faf6b3ad1dc72e70bd377ef9e4 | |
parent | ff30be1c782a853b8c58f520214ac5079f273c42 [diff] [blame] |
This fixes issue #725
diff --git a/system/database/DB_driver.php b/system/database/DB_driver.php index c2d57a8..9d92f2f 100644 --- a/system/database/DB_driver.php +++ b/system/database/DB_driver.php
@@ -1064,7 +1064,14 @@ { $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); + } } }