[ticket/17374] Only delete marked logs if entries have been marked

PHPBB-17374
This commit is contained in:
Marc Alexander 2024-07-23 20:18:28 +02:00
parent 15960a7918
commit 58cc1f4ef3
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))
{