Skip to content

Commit

Permalink
Fixing error in php5.3 when calling behavior methods that had more th…
Browse files Browse the repository at this point in the history
…an 6 parameters.
  • Loading branch information
markstory committed Sep 28, 2009
1 parent 508d737 commit 51508c6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cake/libs/model/behavior.php
Expand Up @@ -167,7 +167,7 @@ function dispatchMethod(&$model, $method, $params = array()) {
case 5:
return $this->{$method}($model, $params[0], $params[1], $params[2], $params[3], $params[4]);
default:
array_unshift($params, $model);
array_unshift($params, &$model);
return call_user_func_array(array(&$this, $method), $params);
break;
}
Expand Down

0 comments on commit 51508c6

Please sign in to comment.