Reversing change from [a37fc0d455e373b30a73f11687885572c6e4b90d]. As the additional & causes errors in PHP <= 5.2

This commit is contained in:
mark_story 2009-09-29 10:05:03 -04:00
parent bcb5e42aab
commit 778a6b9303

View file

@ -167,7 +167,7 @@ class ModelBehavior extends Object {
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); array_unshift($params, $model);
return call_user_func_array(array(&$this, $method), $params); return call_user_func_array(array(&$this, $method), $params);
break; break;
} }