diff options
| -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]); } |
