diff --git a/index.php b/index.php index f39b79d..a87fb30 100644 --- a/index.php +++ b/index.php @@ -115,7 +115,7 @@ $photos = ($activeSectionId > 0 || $activeTopicId > 0) ? photosForPublic($filterMode === 'section' ? $activeSectionId : null, $filterMode === 'topic' ? $activeTopicId : null) : []; $photoCommentCounts = photoCommentCountsByPhotoIds(array_map(static fn(array $p): int => (int)$p['id'], $photos)); -$isHomePage = $activeSectionId < 1 && $activePhotoId < 1; +$isHomePage = $activeSectionId < 1 && $activePhotoId < 1 && $activeTopicId < 1; $isTopicMode = $filterMode === 'topic'; $isSectionMode = $filterMode === 'section';