mirror of
https://github.com/openvk/openvk
synced 2024-11-11 01:19:53 +03:00
Notification: Fix pagination (it didn't work)
Closes #460 vriska nu i vadristal ty tut v kode xddddd
This commit is contained in:
parent
9d4478516f
commit
a48d1cd8ce
1 changed files with 1 additions and 1 deletions
|
@ -37,7 +37,7 @@ class Notifications
|
||||||
if(!$count) {
|
if(!$count) {
|
||||||
$query .= " ORDER BY timestamp DESC";
|
$query .= " ORDER BY timestamp DESC";
|
||||||
$query .= " LIMIT " . ($perPage ?? OPENVK_DEFAULT_PER_PAGE);
|
$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;
|
return $query;
|
||||||
|
|
Loading…
Reference in a new issue