mirror of
https://github.com/kamilwylegala/cakephp2-php8.git
synced 2025-09-09 13:02:40 +00:00
Fixing pass by reference errors in php5.3. Fixes #451
This commit is contained in:
parent
7cde3094f0
commit
dea33f6452
1 changed files with 1 additions and 1 deletions
|
@ -176,7 +176,7 @@ class ModelBehavior extends Object {
|
|||
case 5:
|
||||
return $this->{$method}($model, $params[0], $params[1], $params[2], $params[3], $params[4]);
|
||||
default:
|
||||
array_unshift($params, $model);
|
||||
$params = array_merge(array(&$model), $params);
|
||||
return call_user_func_array(array(&$this, $method), $params);
|
||||
break;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue