add missing break in switch/case for dismiss post

fixes bug in which Dismiss Post worked identically to Dismiss+
This commit is contained in:
RealAngeleno 2023-06-22 04:49:22 -07:00 committed by -
parent 41849a783d
commit bb7e385e32

View File

@ -3233,6 +3233,7 @@ function mod_report_dismiss($id, $action) {
$query = prepare("DELETE FROM ``reports`` WHERE `post` = :post"); $query = prepare("DELETE FROM ``reports`` WHERE `post` = :post");
$query->bindValue(':post', $post); $query->bindValue(':post', $post);
modLog("Dismissed all reports for post #{$id}", $board); modLog("Dismissed all reports for post #{$id}", $board);
break;
case '&all': case '&all':
if (!hasPermission($config['mod']['report_dismiss_ip'], $board)) if (!hasPermission($config['mod']['report_dismiss_ip'], $board))
error($config['error']['noaccess']); error($config['error']['noaccess']);