diff options
author | wei <> | 2007-01-06 00:00:57 +0000 |
---|---|---|
committer | wei <> | 2007-01-06 00:00:57 +0000 |
commit | bde6488e19b9852011a657fda8aa39680d9c4a62 (patch) | |
tree | 4550e521558ddde1e4c42c9d992501beda48b489 /framework/Web/UI/WebControls | |
parent | 6c2a7b9b5674c5c9f0c8e78e32531af43462638c (diff) |
Update docs.
Diffstat (limited to 'framework/Web/UI/WebControls')
-rw-r--r-- | framework/Web/UI/WebControls/TRequiredFieldValidator.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/framework/Web/UI/WebControls/TRequiredFieldValidator.php b/framework/Web/UI/WebControls/TRequiredFieldValidator.php index 8f75d205..c8488c93 100644 --- a/framework/Web/UI/WebControls/TRequiredFieldValidator.php +++ b/framework/Web/UI/WebControls/TRequiredFieldValidator.php @@ -116,7 +116,7 @@ class TRequiredFieldValidator extends TBaseValidator {
$initial = trim($this->getInitialValue());
$value=$this->getValidationValue($control);
- return trim($value)!==$initial || (is_bool($value) && $value);
+ return (is_bool($value) && $value) || trim($value)!==$initial;
}
/**
|