Skip to content

Commit

Permalink
Merge pull request phpbb#6696 from marc1706/ticket/17374
Browse files Browse the repository at this point in the history
[ticket/17374] Only delete marked logs if entries have been marked
  • Loading branch information
marc1706 committed Jul 28, 2024
2 parents 45d64a1 + 58cc1f4 commit 1e28669
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion phpBB/includes/acp/acp_logs.php
Original file line number Diff line number Diff line change
Expand Up @@ -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))
{
Expand Down

0 comments on commit 1e28669

Please sign in to comment.