diff --git a/trunk/src/AppBundle/Service/LodgingCalendarService.php b/trunk/src/AppBundle/Service/LodgingCalendarService.php index e0aa04c5..e8a8be51 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($checkDay->getPrice()->getSeason() && $minDays != $checkDay->getPrice()->getSeason()->getMinimumStay()){ + if(!empty($checkDay->getPrice()->getSeason()) && $minDays != $checkDay->getPrice()->getSeason()->getMinimumStay()){ if($minDays > $checkDay->getPrice()->getSeason()->getMinimumStay()){ $last = $counter+$checkDay->getPrice()->getSeason()->getMinimumStay();