Skip to content
Browse files

Fixing error in php5.3 when calling behavior methods that had more th…

…an 6 parameters.
  • Loading branch information...
markstory committed Sep 28, 2009
1 parent 508d737 commit 51508c6375fcab3c1733d5be0cad54bdd6ce82a5
Showing with 1 addition and 1 deletion.
  1. +1 −1 cake/libs/model/behavior.php
@@ -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]);
array_unshift($params, $model);
array_unshift($params, &$model);
return call_user_func_array(array(&$this, $method), $params);

0 comments on commit 51508c6

Please sign in to comment.
You can’t perform that action at this time.