diff options
| author | ilotterytea <iltsu@alright.party> | 2025-05-04 15:05:09 +0500 |
|---|---|---|
| committer | ilotterytea <iltsu@alright.party> | 2025-05-04 15:05:09 +0500 |
| commit | c01fd37880b595fe7cc6c099373d3123f015d812 (patch) | |
| tree | e0dfc01ef3a434cc41e9e2cab6df53dd012e9529 /public/index.php | |
| parent | a8c47339340081550596f2ab43032ac2dd69fa7e (diff) | |
upd: count only public emotes
Diffstat (limited to 'public/index.php')
| -rw-r--r-- | public/index.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/public/index.php b/public/index.php index d9321fd..17d4d75 100644 --- a/public/index.php +++ b/public/index.php @@ -38,7 +38,7 @@ authorize_user(); <div class="counter"> <?php $db = new PDO(DB_URL, DB_USER, DB_PASS); - $results = $db->query("SELECT COUNT(*) FROM emotes"); + $results = $db->query("SELECT COUNT(*) FROM emotes WHERE visibility = 1"); $count = $results->fetch()[0]; foreach (str_split($count) as $c) { |
