Skip to content

Commit

Permalink
Fix SignalSlotService::hideLocation when content type is unsupported (#…
Browse files Browse the repository at this point in the history
…11)

Fix SignalSlotService::hideLocation when content type is unsupported
  • Loading branch information
reithor authored and damianz5 committed Nov 27, 2019
1 parent 8753682 commit be0ad91
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/lib/Service/SignalSlotService.php
Original file line number Diff line number Diff line change
Expand Up @@ -133,7 +133,11 @@ public function hideLocation(int $locationId, bool $isChild = false): void
}

$content = $this->getContent($location->contentId);


if (!$content instanceof Content) {
return;
}

if (!$isChild && $this->isLocationsAreVisible($content->contentInfo)) {
return;
}
Expand Down

0 comments on commit be0ad91

Please sign in to comment.