diff options
| author | ilotterytea <iltsu@alright.party> | 2025-05-16 01:18:24 +0500 |
|---|---|---|
| committer | ilotterytea <iltsu@alright.party> | 2025-05-16 01:18:24 +0500 |
| commit | fccc2894d5775d045f557a289a6a4713346a8cad (patch) | |
| tree | a8ffad164e7c515d3cc5210c17f2c0df2ad4a7e2 /public/emotes/index.php | |
| parent | 0fac4eabc661e4425cf21d461c0e18b542fa8003 (diff) | |
fix: remove report buttons on disabled REPORTS_ENABLE
Diffstat (limited to 'public/emotes/index.php')
| -rw-r--r-- | public/emotes/index.php | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/public/emotes/index.php b/public/emotes/index.php index 73aa996..9501f04 100644 --- a/public/emotes/index.php +++ b/public/emotes/index.php @@ -315,8 +315,8 @@ if (CLIENT_REQUIRES_JSON) { } } } - if ($_SESSION["user_role"]["permission_report"]) { - echo '<a class="button red" href="/report?emote_id=<?php echo $emote->get_id() ?>">Report emote</a>'; + if (REPORTS_ENABLE && $_SESSION["user_role"]["permission_report"]) { + echo "<a class='button red' href='/report?emote_id={$emote->id}'>Report emote</a>"; } } ?> |
