From 926259a3de8714c9f9101822fb5a1e3043fd9b53 Mon Sep 17 00:00:00 2001 From: Kekskurse Date: Mon, 8 Feb 2021 01:39:29 +0100 Subject: [PATCH] Stuff --- app/Http/Controllers/PublicController.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/Http/Controllers/PublicController.php b/app/Http/Controllers/PublicController.php index 2c4bc4b..bb132c7 100644 --- a/app/Http/Controllers/PublicController.php +++ b/app/Http/Controllers/PublicController.php @@ -49,7 +49,7 @@ class PublicController extends BaseController $preview = url("/".$tenant->url.".json?page=".($page-1)); } - if($page >= ($g->count() / 10)) { + if(($g->count() / 10) > $page) { $next = url("/".$tenant->url.".json?page=".($page+1)); }