From a48d1cd8ce26af5fbcab865d831ff808f26bfaa9 Mon Sep 17 00:00:00 2001 From: veselcraft Date: Mon, 7 Feb 2022 19:39:54 +0300 Subject: [PATCH] Notification: Fix pagination (it didn't work) Closes #460 vriska nu i vadristal ty tut v kode xddddd --- Web/Models/Repositories/Notifications.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Web/Models/Repositories/Notifications.php b/Web/Models/Repositories/Notifications.php index 3b93b7a6..bec0b04f 100644 --- a/Web/Models/Repositories/Notifications.php +++ b/Web/Models/Repositories/Notifications.php @@ -37,7 +37,7 @@ class Notifications if(!$count) { $query .= " ORDER BY timestamp DESC"; $query .= " LIMIT " . ($perPage ?? OPENVK_DEFAULT_PER_PAGE); - $query .= " OFFSET " . ((($page - 1) * $perPage) ?? OPENVK_DEFAULT_PER_PAGE); + $query .= " OFFSET " . (($page - 1) * ($perPage ?? OPENVK_DEFAULT_PER_PAGE)); } return $query;