My guess is that $values is an empty array for some reason.
The full log and stacktrace is:
Division by zero {"userId":1,"email":"**@***","exception":"[object] (Symfony\Component\Debug\Exception\FatalThrowableError(code: 0): Division by zero at /var/www/html/Modules/Reports/Http/Controllers/ReportsController.php:1324)
[stacktrace]
Freescout version: 1.8.42 Reports module version: 1.0.21
When I click on Reports > Productivity Report an error appears "Error occurred. Please try again later."
The laravel app log shows a division by zero exception in ReportsController.php on line 1324:
$table[-1] = number_format(array_sum($values) / count($values), 2);
My guess is that
$values
is an empty array for some reason.The full log and stacktrace is: