From dea33f64520eb181c0bfcba73201858a9024d720 Mon Sep 17 00:00:00 2001 From: mark_story Date: Sat, 29 May 2010 13:19:12 -0400 Subject: [PATCH] Fixing pass by reference errors in php5.3. Fixes #451 --- cake/libs/model/model_behavior.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cake/libs/model/model_behavior.php b/cake/libs/model/model_behavior.php index 77a4157ffcc..140a8831d38 100644 --- a/cake/libs/model/model_behavior.php +++ b/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; }