From 7767199a692f8cf5b293c11a19fa2df81e3f7b9b Mon Sep 17 00:00:00 2001 From: adametz Date: Wed, 15 Aug 2018 08:17:14 +0000 Subject: [PATCH] Season delete git-svn-id: http://78.47.251.156/svn/dev/sterntours-3@3444 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 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();