From a10adcabcba6ce79b20dc716b91b74c68ab26063 Mon Sep 17 00:00:00 2001 From: lmarcouiller Date: Tue, 7 Sep 2021 16:45:52 +0200 Subject: [PATCH] Fix fatal error with php 8.0 holiday creation --- htdocs/holiday/card.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/htdocs/holiday/card.php b/htdocs/holiday/card.php index 62b8bfa015e..fd0fb2eb91e 100644 --- a/htdocs/holiday/card.php +++ b/htdocs/holiday/card.php @@ -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');