diff --git a/module/Activity/view/activity/activity/archive.phtml b/module/Activity/view/activity/activity/archive.phtml index 72db23bdf8..7abb95652d 100644 --- a/module/Activity/view/activity/activity/archive.phtml +++ b/module/Activity/view/activity/activity/archive.phtml @@ -11,11 +11,18 @@ use Laminas\View\Renderer\PhpRenderer; * @var array $years * @var ActivityModel[] $activities */ + +if (isset($year)) { + $activeYearIndex = array_search($year, $years); + $isYearInDropdown = $activeYearIndex !== false && $activeYearIndex < count($years) - 5; +} else { + $isYearInDropdown = false; +} ?>
= $this->translate('There are no undated albums.') ?>
= $this->translate('There are no albums in this year.') ?>
= $this->translate('There are no photos in this year.') ?>
= $this->translate('No albums were found.') ?>
+