Fix incorrect array key, add typecasting
This commit is contained in:
@@ -83,9 +83,9 @@ class CityController extends ActionController
|
|||||||
|
|
||||||
public function teasergroupAction()
|
public function teasergroupAction()
|
||||||
{
|
{
|
||||||
$regionUid = $this->settings['regionUid'];
|
$regionUid = (int)$this->settings['regionUid'];
|
||||||
$season = $this->settings['season'];
|
$season = $this->settings['season'];
|
||||||
$citiesPid = $this->settings['citiesPid'];
|
$citiesPid = (int)$this->settings['citiesStoragePid'];
|
||||||
$cities = $this->cityRepository->getTeasersByRegionAndSeason($regionUid, $season, $citiesPid);
|
$cities = $this->cityRepository->getTeasersByRegionAndSeason($regionUid, $season, $citiesPid);
|
||||||
$data = $this->configurationManager->getContentObject()->data;
|
$data = $this->configurationManager->getContentObject()->data;
|
||||||
$this->view->assign('data', $data);
|
$this->view->assign('data', $data);
|
||||||
|
|||||||
@@ -83,9 +83,9 @@ class RegionController extends ActionController
|
|||||||
|
|
||||||
public function teasergroupAction()
|
public function teasergroupAction()
|
||||||
{
|
{
|
||||||
$countryUid = $this->settings['countryUid'];
|
$countryUid = (int)$this->settings['countryUid'];
|
||||||
$season = $this->settings['season'];
|
$season = $this->settings['season'];
|
||||||
$regionsPid = $this->settings['regionsStoragePid'];
|
$regionsPid = (int)$this->settings['regionsStoragePid'];
|
||||||
$regions = $this->regionRepository->getTeasersByCountryAndSeason($countryUid, $season, $regionsPid);
|
$regions = $this->regionRepository->getTeasersByCountryAndSeason($countryUid, $season, $regionsPid);
|
||||||
$data = $this->configurationManager->getContentObject()->data;
|
$data = $this->configurationManager->getContentObject()->data;
|
||||||
$this->view->assign('data', $data);
|
$this->view->assign('data', $data);
|
||||||
|
|||||||
Reference in New Issue
Block a user