Merge pull request #6696 from marc1706/ticket/17374

[ticket/17374] Only delete marked logs if entries have been marked
This commit is contained in:
Marc Alexander 2024-07-28 20:31:52 +02:00
commit 1e28669407
No known key found for this signature in database
GPG key ID: 50E0D2423696F995

View file

@ -51,7 +51,7 @@ class acp_logs
$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))
{