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 authored and asmecher committed Nov 12, 2024
1 parent aae7f7f commit 2fe5813
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions pages/issue/IssueHandler.inc.php
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

0 comments on commit 2fe5813

Please sign in to comment.