summaryrefslogtreecommitdiff
path: root/framework/Web/UI/WebControls/TCompareValidator.php
diff options
context:
space:
mode:
authorxue <>2006-02-22 02:46:25 +0000
committerxue <>2006-02-22 02:46:25 +0000
commitfceb3741d3b0c1e00e81a4a24caf7d49a86896b4 (patch)
treeb2d7f92eaacc92111701c493b91da9d882f580be /framework/Web/UI/WebControls/TCompareValidator.php
parent0922e304fb1d7fc2e486d7020e65e011b9f13e0d (diff)
Updated some validators and relevant demos.
Diffstat (limited to 'framework/Web/UI/WebControls/TCompareValidator.php')
-rw-r--r--framework/Web/UI/WebControls/TCompareValidator.php2
1 files changed, 1 insertions, 1 deletions
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));