diff options
| author | ilotterytea <iltsu@alright.party> | 2025-12-10 00:23:32 +0500 |
|---|---|---|
| committer | ilotterytea <iltsu@alright.party> | 2025-12-10 00:23:32 +0500 |
| commit | 0fd795e1d7374745e5df3be58f00ddb69a55e408 (patch) | |
| tree | 2c857006c8fb916ad65e8dbff95df4062b95fe13 | |
| parent | b49c1cfc20f2ff49b1e6ab9f4512b8376deb30a7 (diff) | |
fix: total emotes were counted wrong...
| -rw-r--r-- | emotes/index.php | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/emotes/index.php b/emotes/index.php index 06d9e43..b3c9c26 100644 --- a/emotes/index.php +++ b/emotes/index.php @@ -108,7 +108,9 @@ else { array_push($emotes, Emote::from_array_with_user($row, $db)); } - $total_emotes = count($emotes); + $stmt = $db->prepare("SELECT COUNT(*) FROM emotes WHERE visibility = 1"); + $stmt->execute(); + $total_emotes = $stmt->fetch()[0]; $total_pages = ceil($total_emotes / $limit); } |
