diff --git a/inc/instance-config.php b/inc/instance-config.php index eb2cc37c..079629f1 100644 --- a/inc/instance-config.php +++ b/inc/instance-config.php @@ -82,6 +82,7 @@ $config['mod']['manageusers'] = SUPERMOD; $config['mod']['noticeboard_post'] = SUPERMOD; $config['mod']['search'] = SUPERMOD; + $config['mod']['clean_global'] = SUPERMOD; $config['mod']['debug_recent'] = ADMIN; $config['mod']['debug_antispam'] = ADMIN; $config['mod']['modlog'] = SUPERMOD; @@ -89,6 +90,7 @@ $config['mod']['edit_banners'] = MOD; $config['mod']['edit_flags'] = MOD; $config['mod']['edit_settings'] = MOD; + $config['mod']['clean'] = MOD; $config['mod']['recent_reports'] = 65535; $config['mod']['ip_less_recentposts'] = 75; $config['ban_show_post'] = true; diff --git a/inc/mod/pages.php b/inc/mod/pages.php index 8c2fd9fa..26f7d227 100644 --- a/inc/mod/pages.php +++ b/inc/mod/pages.php @@ -2306,7 +2306,7 @@ function mod_reports() { $report_scope = $global ? "global" : "local"; // Get REPORTS. - $query = prepare("SELECT * FROM ``reports`` " . ($mod["type"] == "20" ? "WHERE board = :board" : "") . " WHERE ``".($global ? "global" : "local")."`` = TRUE LIMIT :limit"); + $query = prepare("SELECT * FROM ``reports`` WHERE " . ($mod["type"] == "20" ? "board = :board AND" : "") . " ``".($global ? "global" : "local")."`` = TRUE LIMIT :limit"); // Limit reports by board if the moderator is local. if( $mod['type'] == '20' ) {