Fix error Unsupported operand types: int + stringPHP

This commit is contained in:
Hadi Nategh 2021-12-13 10:43:00 +01:00
parent 85de53b2eb
commit d2cd36656a

View File

@ -418,13 +418,8 @@ class calendar_category_report extends calendar_ui{
foreach ($raw_csv as &$row)
{
$check_row = 0;
foreach ($row as $val)
{
$check_row += $val;
}
//check if all values of the row is zero then escape the row
if (!$check_row) continue;
if (!array_sum($row)) continue;
// printout each row into file
fputcsv($fp, array_values($row));