Skip to content

Commit

Permalink
pkp/pkp-lib#10596 Fix: issue archives show pages that don't exist
Browse files Browse the repository at this point in the history
  • Loading branch information
NateWr committed Nov 11, 2024
1 parent d66142e commit 691af33
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions pages/issue/IssueHandler.php
Original file line number Diff line number Diff line change
Expand Up @@ -172,6 +172,10 @@ public 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([
'issues' => $issues,
'showingStart' => $showingStart,
Expand Down

0 comments on commit 691af33

Please sign in to comment.