diff --git a/Classes/Controller/EventController.php b/Classes/Controller/EventController.php index 78768d332..b204270a5 100644 --- a/Classes/Controller/EventController.php +++ b/Classes/Controller/EventController.php @@ -948,7 +948,7 @@ public function searchAction(SearchDemand $searchDemand = null, array $overwrite */ protected function isOverwriteDemand(array $overwriteDemand): bool { - return ($this->settings['disableOverrideDemand'] ?? 0) !== 1 && $overwriteDemand !== []; + return (int)($this->settings['disableOverrideDemand'] ?? 0) !== 1 && $overwriteDemand !== []; } /**