From b97ac84a34b38d39ffe1b13923f7a9021b355e3e Mon Sep 17 00:00:00 2001 From: Mark Story Date: Thu, 14 Jan 2010 23:41:35 -0500 Subject: [PATCH] Fixing method_exists use in Validation for php4 compatibility. --- cake/libs/validation.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cake/libs/validation.php b/cake/libs/validation.php index eeb23030f0f..e34dbbfa40f 100644 --- a/cake/libs/validation.php +++ b/cake/libs/validation.php @@ -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; }