Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Fixing method_exists use in Validation for php4 compatibility.
  • Loading branch information
markstory committed Jan 15, 2010
1 parent 276d183 commit b97ac84
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cake/libs/validation.php
Expand Up @@ -927,7 +927,7 @@ function _pass($method, $check, $classPrefix) {
trigger_error(sprintf(__('Could not find %s class, unable to complete validation.', true), $className), E_USER_WARNING);
return false;
}
if (!method_exists($className, $method)) {
if (!is_callable(array($className, $method))) {
trigger_error(sprintf(__('Method %s does not exist on %s unable to complete validation.', true), $method, $className), E_USER_WARNING);
return false;
}
Expand Down

0 comments on commit b97ac84

Please sign in to comment.