Skip to content

Commit

Permalink
Style tweak
Browse files Browse the repository at this point in the history
  • Loading branch information
LukeTowers committed Sep 10, 2023
1 parent 0fe20b1 commit 4a14a17
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion components/Posts.php
Original file line number Diff line number Diff line change
Expand Up @@ -167,7 +167,7 @@ public function onRun()
return Redirect::to($this->currentPageUrl([$pageNumberParam => $lastPage]));
}

if (isset($currentPage) && $currentPage < 1) {
if (!is_null($currentPage) && $currentPage < 1) {
return Redirect::to($this->currentPageUrl([$pageNumberParam => 1]));
}
}
Expand Down

0 comments on commit 4a14a17

Please sign in to comment.