commit | d92bd57f007e9561a37be8a8ccaf93a4f8948343 | [log] [tgz] |
---|---|---|
author | Repox <storm@err0r.dk> | Thu Dec 01 10:08:52 2011 +0100 |
committer | Repox <storm@err0r.dk> | Thu Dec 01 10:08:52 2011 +0100 |
tree | aa29bf529caa122737928e33477ac8d56aafeec8 | |
parent | b9ad907ca50c5067f8eec1ccf77544cf62466b17 [diff] [blame] |
This fixes issue #725
diff --git a/system/database/DB_driver.php b/system/database/DB_driver.php index 3680b85..3952d72 100644 --- a/system/database/DB_driver.php +++ b/system/database/DB_driver.php
@@ -1015,8 +1015,14 @@ 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); + } } }