Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Fixing pass by reference errors in php5.3. Fixes #451

  • Loading branch information...
commit dea33f64520eb181c0bfcba73201858a9024d720 1 parent 7cde309
@markstory markstory authored
Showing with 1 addition and 1 deletion.
  1. +1 −1  cake/libs/model/model_behavior.php
View
2  cake/libs/model/model_behavior.php
@@ -176,7 +176,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);
+ $params = array_merge(array(&$model), $params);
return call_user_func_array(array(&$this, $method), $params);
break;
}
Please sign in to comment.
Something went wrong with that request. Please try again.