2011-11-30, 12:36 AM
Just upgraded to myBB 1.6.5 and got the following error:
Fatal error: Function name must be a string in /home/berlingo/public_html/inc/class_plugins.php on line 101
the file in question.
Just to update, i did the following and has brought my forum back online, but i want to know if it is an OK correction or not.
to:
Fatal error: Function name must be a string in /home/berlingo/public_html/inc/class_plugins.php on line 101
the file in question.
Just to update, i did the following and has brought my forum back online, but i want to know if it is an OK correction or not.
if(is_array($hooks))
{
foreach($hooks as $hook)
{
if($hook['file'])
{
require_once $hook['file'];
}
$func = $hook['function'];
$returnargs = $func($arguments);
if($returnargs)
{
$arguments = $returnargs;
}
}
}
}
$this->current_hook = '';
return $arguments;
to:
if($hook['file'])
{
require_once $hook['file'];
}
$returnargs = call_user_func_array($hook['function'], array(&$arguments));
if($returnargs)
{
$arguments = $returnargs;