Notification: Fix pagination (it didn't work)

Closes #460

vriska nu i vadristal ty tut v kode xddddd
This commit is contained in:
veselcraft 2022-02-07 19:39:54 +03:00
parent 9d4478516f
commit a48d1cd8ce
No known key found for this signature in database
GPG key ID: AED66BC1AC628A4E

View file

@ -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;