diff options
| author | ilotterytea <iltsu@alright.party> | 2025-12-10 21:42:37 +0500 |
|---|---|---|
| committer | ilotterytea <iltsu@alright.party> | 2025-12-10 21:42:37 +0500 |
| commit | d3de5a44085f53d80e736b769d5145130df86645 (patch) | |
| tree | bc2dcae058e043591eee894468b451687bbd9d23 | |
| parent | 3623db728ba4edb3107abbff483d1eb9cdd53ca3 (diff) | |
fix: reports were still counted even it was disabled
| -rw-r--r-- | lib/partials.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/partials.php b/lib/partials.php index 6d5a918..5dc97d7 100644 --- a/lib/partials.php +++ b/lib/partials.php @@ -65,7 +65,7 @@ function html_navigation_bar() $system_count += intval($db->query("SELECT COUNT(*) FROM emotes WHERE visibility = 2")->fetch()[0]); } - if ($_SESSION["user_role"]["permission_report_review"]) { + if ($_SESSION["user_role"]["permission_report_review"] && CONFIG['reports']['enable']) { $system_count += intval($db->query("SELECT COUNT(*) FROM reports WHERE resolved_by IS NULL")->fetch()[0]); } |
