From c2a865f099d79ea9ab5c99ad2ef29421cb9ed47c Mon Sep 17 00:00:00 2001 From: Nate Wright Date: Mon, 11 Nov 2024 12:02:40 +0000 Subject: [PATCH] pkp/pkp-lib#10596 Fix: issue archives show pages that don't exist --- pages/issue/IssueHandler.inc.php | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/pages/issue/IssueHandler.inc.php b/pages/issue/IssueHandler.inc.php index 620a9ac1661..ed0326436ad 100644 --- a/pages/issue/IssueHandler.inc.php +++ b/pages/issue/IssueHandler.inc.php @@ -141,6 +141,10 @@ function archive($args, $request) { $nextPage = $total > $showingEnd ? $page + 1 : null; $prevPage = $showingStart > 1 ? $page - 1 : null; + if (!count($issues) && $offset) { + $this->getDispatcher()->handle404(); + } + $templateMgr->assign(array( 'issues' => $issues, 'showingStart' => $showingStart,