Skip to content

Commit

Permalink
Only apply page filter if at least one page is selected (#7)
Browse files Browse the repository at this point in the history
  • Loading branch information
dmolineus committed Mar 2, 2022
1 parent 7149de3 commit fc68367
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/Renderer/ArticleRenderer.php
Original file line number Diff line number Diff line change
Expand Up @@ -113,7 +113,11 @@ public function isValid(): bool
}

$pageFilter = StringUtil::deserialize($this->article->hofff_content_page_filter, true);
$strategy = $this->article->hofff_content_page_filter_strategy;
if (! $pageFilter) {
return true;
}

$strategy = $this->article->hofff_content_page_filter_strategy;

if ($this->article->hofff_content_page_filter_inheritance) {
if (array_intersect($GLOBALS['objPage']->trail, $pageFilter)) {
Expand Down

0 comments on commit fc68367

Please sign in to comment.