From fceb3741d3b0c1e00e81a4a24caf7d49a86896b4 Mon Sep 17 00:00:00 2001 From: xue <> Date: Wed, 22 Feb 2006 02:46:25 +0000 Subject: Updated some validators and relevant demos. --- framework/Web/UI/WebControls/TCompareValidator.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'framework/Web/UI/WebControls/TCompareValidator.php') diff --git a/framework/Web/UI/WebControls/TCompareValidator.php b/framework/Web/UI/WebControls/TCompareValidator.php index 853cff17..9b8dabd5 100644 --- a/framework/Web/UI/WebControls/TCompareValidator.php +++ b/framework/Web/UI/WebControls/TCompareValidator.php @@ -206,7 +206,7 @@ class TCompareValidator extends TBaseValidator return array($value1, $value2); case 'Date': $dateFormat = $this->getDateFormat(); - if (strlen($dateFormat)) + if($dateFormat!=='') { $formatter = Prado::createComponent('System.Data.TSimpleDateFormatter', $dateFormat); return array($formatter->parse($value1), $formatter->parse($value2)); -- cgit v1.2.3