mirror of
https://gitlab.easter-eggs.com/ee/ldapsaisie.git
synced 2024-11-25 11:29:06 +01:00
LSformRule :: date : Fix mktime return check
This commit is contained in:
parent
18550a5fb2
commit
d909b5aad5
1 changed files with 1 additions and 1 deletions
|
@ -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;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue