Compare commits

...

2 commits

Author SHA1 Message Date
Marc Alexander
acddce37e6
Merge pull request #6622 from rubencm/ticket/17323
[ticket/17323] Fix division by 0 when there is 0 posts
2024-05-25 21:33:23 +02:00
Ruben Calvo
05fafdc445
[ticket/17323] Fix division by 0 when there is 0 posts
PHPBB3-17323
2024-05-25 04:40:44 +02:00

View file

@ -516,7 +516,7 @@ class acp_search
$this->db->sql_freeresult($result);
$total_count = $done_count + $remain_count;
$percent = ($done_count / $total_count) * 100;
$percent = $total_count > 0 ? ($done_count / $total_count) * 100 : 100;
return [
'VALUE' => $done_count,