From d3de5a44085f53d80e736b769d5145130df86645 Mon Sep 17 00:00:00 2001 From: ilotterytea Date: Wed, 10 Dec 2025 21:42:37 +0500 Subject: fix: reports were still counted even it was disabled --- lib/partials.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lib') 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]); } -- cgit v1.2.3