Skip to content

Commit

Permalink
Updating Model to use call_user_func_array instead of methods that we…
Browse files Browse the repository at this point in the history
…re previously inherited from Object.
  • Loading branch information
markstory committed Apr 24, 2010
1 parent 65ddc2b commit c9f1034
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cake/libs/model/model.php
Expand Up @@ -2533,7 +2533,7 @@ function invalidFields($options = array()) {
$ruleParams[0] = array($fieldName => $ruleParams[0]);
$valid = $this->Behaviors->dispatchMethod($this, $rule, $ruleParams);
} elseif (method_exists('Validation', $rule)) {
$valid = $Validation->dispatchMethod($rule, $ruleParams);
$valid = call_user_func_array(array('Validation', $rule), $ruleParams);
} elseif (!is_array($validator['rule'])) {
$valid = preg_match($rule, $data[$fieldName]);
} elseif (Configure::read('debug') > 0) {
Expand Down

0 comments on commit c9f1034

Please sign in to comment.