LSformRule :: date : Fix mktime return check

This commit is contained in:
Benjamin Renard 2015-09-02 10:44:00 +02:00
parent 18550a5fb2
commit d909b5aad5

View file

@ -44,7 +44,7 @@ class LSformRule_date extends LSformRule {
$date = strptime($value,$options['format']);
if(is_array($date)) {
$res = mktime($date['tm_hour'],$date['tm_min'],$date['tm_sec'],$date['tm_mon']+1,$date['tm_mday'],$date['tm_year']+1900);
if ((is_int($res)) && ($res > -1)) {
if ((is_int($res)) && ($res != -1) && ($res !== False)) {
return true;
}
}