Fixing method_exists use in Validation for php4 compatibility.

This commit is contained in:
Mark Story 2010-01-14 23:41:35 -05:00
parent 276d183bdd
commit b97ac84a34

View file

@ -927,7 +927,7 @@ class Validation extends Object {
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;
}