From 377b844a516152760b5cb8dca298df09bb8a9bf6 Mon Sep 17 00:00:00 2001 From: Jim Safley Date: Wed, 3 Jan 2024 15:50:56 -0500 Subject: [PATCH] Account for page not in navigation --- application/view/omeka/site/page/show.phtml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/application/view/omeka/site/page/show.phtml b/application/view/omeka/site/page/show.phtml index 645f7abe7..b57631f22 100644 --- a/application/view/omeka/site/page/show.phtml +++ b/application/view/omeka/site/page/show.phtml @@ -12,7 +12,7 @@ switch ($this->siteSetting('subnav_display')) { $displaySubnav = false; break; default: - $displaySubnav = $this->displayNavigation && $activePage['page']->hasPages(); + $displaySubnav = $this->displayNavigation && $activePage && $activePage['page']->hasPages(); } $showPagePagination = $this->siteSetting('show_page_pagination', true); ?>