Usage #0002145: Date invalide acceptée :

This commit is contained in:
sparkyx 2022-02-19 11:19:34 +01:00
parent 03469c646f
commit dcfffcb029
4 changed files with 30 additions and 6 deletions

View file

@ -62,8 +62,20 @@ if ( $step == 0 )
}
else
{
$from_date=$http->get('from_date',"date");
$to_date=$http->get('to_date',"date");
try {
$from_date=$http->get('from_date',"date");
} catch (Exception $e) {
$from_date=date('d.m.Y');
}
try
{
$to_date=$http->get('to_date',"date");
}
catch (Exception $exc)
{
$to_date=date('d.m.Y');
}
$array=$Form->get_row( $from_date,$to_date, $type_periode);
}