diff --git a/application/modules/api/services/Calendar.php b/application/modules/api/services/Calendar.php index 1a790b4d..f80d7221 100755 --- a/application/modules/api/services/Calendar.php +++ b/application/modules/api/services/Calendar.php @@ -37,8 +37,7 @@ public function sync($userid, $commission = null): void } // Le refresh est par défaut à 5 minutes - $refreshTime = getenv('PREVARISC_CALENDAR_REFRESH_TIME') ? - getenv('PREVARISC_CALENDAR_REFRESH_TIME') : 'PT5M'; + $refreshTime = getenv('PREVARISC_CALENDAR_REFRESH_TIME') ?: 'PT5M'; $calendar = new VCalendar([ 'NAME' => $calendrierNom,