summaryrefslogtreecommitdiff
path: root/framework/Util/TSimpleDateFormatter.php
diff options
context:
space:
mode:
authorwei <>2006-08-05 00:38:30 +0000
committerwei <>2006-08-05 00:38:30 +0000
commit93c4193f4a3c315c7785bf5f9f522c955ef6fce7 (patch)
tree6166ca58b6a947a0e6fa3cbc9cd728650fc57221 /framework/Util/TSimpleDateFormatter.php
parenta9bdf9fde29c5bf71d3a402fc15806ca8923aea8 (diff)
Fixed #274
Diffstat (limited to 'framework/Util/TSimpleDateFormatter.php')
-rw-r--r--framework/Util/TSimpleDateFormatter.php5
1 files changed, 4 insertions, 1 deletions
diff --git a/framework/Util/TSimpleDateFormatter.php b/framework/Util/TSimpleDateFormatter.php
index 971225b5..03ae7b7d 100644
--- a/framework/Util/TSimpleDateFormatter.php
+++ b/framework/Util/TSimpleDateFormatter.php
@@ -185,7 +185,10 @@ class TSimpleDateFormatter
*/
public function isValidDate($value)
{
- return !is_null($this->parse($value, false));
+ if(is_null($value))
+ return false;
+ else
+ return !is_null($this->parse($value, false));
}
/**