diff options
Diffstat (limited to 'public')
| -rw-r--r-- | public/emotes/index.php | 4 | ||||
| -rw-r--r-- | public/system/index.php | 2 |
2 files changed, 3 insertions, 3 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>"; } } ?> diff --git a/public/system/index.php b/public/system/index.php index 8786b0e..95b17a5 100644 --- a/public/system/index.php +++ b/public/system/index.php @@ -47,7 +47,7 @@ $db = new PDO(DB_URL, DB_USER, DB_PASS); echo '</a>'; } - if ($_SESSION["user_role"]["permission_report_review"]) { + if (REPORTS_ENABLE && $_SESSION["user_role"]["permission_report_review"]) { echo '<a href="/system/reports">Reports'; $results = $db->query("SELECT COUNT(*) FROM reports WHERE resolved_by IS NULL")->fetch()[0]; |
