• 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
call_user_func_array() error in DB_driver.php

#1
[eluser]mgnsrsn[/eluser]
Hi,

there seems to be a problem in database/DB_driver.php in the call_function($function)

Using PHP 5.3.1 and CI 1.7.2 I get

call_user_func_array() expects parameter 2 to be array, null given

I had to change row 1013 to be

Code:
$args = (func_num_args() > 1) ? array_splice(func_get_args(), 1) : null;

  if($args == null)
    return call_user_func($function);
  else
    return call_user_func_array($function, $args);

to make it work.

Regards

Magnus


Digg   Delicious   Reddit   Facebook   Twitter   StumbleUpon  


Users browsing this thread:
1 Guest(s)


  Theme © 2014 iAndrew  
Powered By MyBB, © 2002-2017 MyBB Group.