1
0
mirror of https://github.com/phpbb/phpbb.git synced 2025-07-25 19:11:47 +02:00

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

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))
{