diff --git a/trunk/src/AppBundle/Service/LodgingCalendarService.php b/trunk/src/AppBundle/Service/LodgingCalendarService.php index aad931ac..e0aa04c5 100644 --- a/trunk/src/AppBundle/Service/LodgingCalendarService.php +++ b/trunk/src/AppBundle/Service/LodgingCalendarService.php @@ -780,7 +780,7 @@ class LodgingCalendarService $checkDay = $paddedCalendar[$mSdt->format("Y-n")]['data'][$key]; - if($minDays != $checkDay->getPrice()->getSeason()->getMinimumStay()){ + if($checkDay->getPrice()->getSeason() && $minDays != $checkDay->getPrice()->getSeason()->getMinimumStay()){ if($minDays > $checkDay->getPrice()->getSeason()->getMinimumStay()){ $last = $counter+$checkDay->getPrice()->getSeason()->getMinimumStay();