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 89b92f8 commit b4f2c16
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 @@ -177,6 +177,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 b4f2c16

Please sign in to comment.