Fix incorrect array key, add typecasting

This commit is contained in:
Björn Fromme
2022-08-23 11:21:20 +02:00
parent 993d966824
commit adb9413d57
2 changed files with 4 additions and 4 deletions
@@ -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);