From 24c3b2fbb937ad9b8c9a5540922909e02c0e745e Mon Sep 17 00:00:00 2001 From: Kekskurse Date: Mon, 8 Feb 2021 11:10:40 +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 938fabb..880ada1 100644 --- a/app/Http/Controllers/PublicController.php +++ b/app/Http/Controllers/PublicController.php @@ -56,7 +56,7 @@ class PublicController extends BaseController return response()->json(["pagination" => [ "total" => $g->count(), "items_per_page" => $limit, - "pages" => ($g->count() / $limit), + "pages" => (int)($g->count() / $limit), "preview" => $preview, "next" => $next], "data" => [