Permalink
Browse files

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

…an 6 parameters.
  • Loading branch information...
1 parent 6c7104f commit a37fc0d455e373b30a73f11687885572c6e4b90d @markstory markstory committed Sep 28, 2009
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]);
default:
- array_unshift($params, $model);
+ array_unshift($params, &$model);
return call_user_func_array(array(&$this, $method), $params);
break;
}

0 comments on commit a37fc0d

Please sign in to comment.