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)); }