Fix fatal error with php 8.0 holiday creation

This commit is contained in:
lmarcouiller 2021-09-07 16:45:52 +02:00
parent c3825e2394
commit a10adcabcb

View File

@ -925,7 +925,7 @@ if ((empty($id) && empty($ref)) || $action == 'create' || $action == 'add') {
}
$delayForRequest = $object->getConfCP('delayForRequest');
$delayForRequest = $object->getConfCP('delayForRequest', 1);
//$delayForRequest = $delayForRequest * (60*60*24);
$nextMonth = dol_time_plus_duree($now, $delayForRequest, 'd');