Skip to content

Commit

Permalink
Fixing pass by reference errors in php5.3. Fixes #451
Browse files Browse the repository at this point in the history
  • Loading branch information
markstory committed May 29, 2010
1 parent 7cde309 commit dea33f6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cake/libs/model/model_behavior.php
Expand Up @@ -176,7 +176,7 @@ function dispatchMethod(&$model, $method, $params = array()) {
case 5: case 5:
return $this->{$method}($model, $params[0], $params[1], $params[2], $params[3], $params[4]); return $this->{$method}($model, $params[0], $params[1], $params[2], $params[3], $params[4]);
default: default:
array_unshift($params, $model); $params = array_merge(array(&$model), $params);
return call_user_func_array(array(&$this, $method), $params); return call_user_func_array(array(&$this, $method), $params);
break; break;
} }
Expand Down

0 comments on commit dea33f6

Please sign in to comment.