diff --git a/bundle/View/Builder/ContentViewBuilder.php b/bundle/View/Builder/ContentViewBuilder.php index ad61afde..e605ff65 100644 --- a/bundle/View/Builder/ContentViewBuilder.php +++ b/bundle/View/Builder/ContentViewBuilder.php @@ -59,7 +59,7 @@ public function buildView(array $parameters): ContentView } if (isset($parameters['locationId'])) { - $location = $this->loadLocation($parameters['locationId']); + $location = $this->loadLocation((int) $parameters['locationId']); } elseif (isset($parameters['location'])) { $location = $parameters['location']; if ($location instanceof APILocation) { @@ -76,7 +76,7 @@ public function buildView(array $parameters): ContentView } } else { if (isset($parameters['contentId'])) { - $contentId = $parameters['contentId']; + $contentId = (int) $parameters['contentId']; } elseif (isset($location)) { $contentId = $location->contentInfo->id; } else {