From 58cc1f4ef301fa50398d4289a6b4ae49b69082c0 Mon Sep 17 00:00:00 2001 From: Marc Alexander Date: Tue, 23 Jul 2024 20:18:28 +0200 Subject: [PATCH] [ticket/17374] Only delete marked logs if entries have been marked PHPBB-17374 --- phpBB/includes/acp/acp_logs.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/phpBB/includes/acp/acp_logs.php b/phpBB/includes/acp/acp_logs.php index f85c24af09b..0244dce66ce 100644 --- a/phpBB/includes/acp/acp_logs.php +++ b/phpBB/includes/acp/acp_logs.php @@ -51,7 +51,7 @@ function main($id, $mode) $pagination = $phpbb_container->get('pagination'); // Delete entries if requested and able - if (($deletemark || $deleteall) && $auth->acl_get('a_clearlogs')) + if (($deleteall || ($deletemark && count($marked))) && $auth->acl_get('a_clearlogs')) { if (confirm_box(true)) {