diff --git a/Classes/Controller/OverviewController.php b/Classes/Controller/OverviewController.php index 3d8862090e9835d099f5653fd99b5dc2863ed5ea..86f0d01f459933f50c060009beaf30703145aecd 100644 --- a/Classes/Controller/OverviewController.php +++ b/Classes/Controller/OverviewController.php @@ -457,10 +457,10 @@ class OverviewController extends AbstractController { } // find all tags - $tagPid = $GLOBALS['TSFE']->id; + $currentPageId = $GLOBALS['TSFE']->id; if ($this->settings['onlyNewsWithinThisPageSection']) { /** @noinspection PhpUndefinedMethodInspection */ - $tags = $this->tagRepository->findByPid($tagPid); + $tags = $this->tagRepository->findByPid($currentPageId); } else { $tags = $this->tagRepository->findAll(); }