From bfa43476920f0bc3c3eeab277d0494ec93963e07 Mon Sep 17 00:00:00 2001 From: adametz Date: Wed, 15 Aug 2018 08:18:34 +0000 Subject: [PATCH] Season empty git-svn-id: http://78.47.251.156/svn/dev/sterntours-3@3445 f459cee4-fb09-11de-96c3-f9c5f16c3c76 --- trunk/src/AppBundle/Service/LodgingCalendarService.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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();