mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-11-25 09:23:28 +01:00
Fix error Unsupported operand types: int + stringPHP
This commit is contained in:
parent
85de53b2eb
commit
d2cd36656a
@ -418,13 +418,8 @@ class calendar_category_report extends calendar_ui{
|
|||||||
|
|
||||||
foreach ($raw_csv as &$row)
|
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
|
//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
|
// printout each row into file
|
||||||
fputcsv($fp, array_values($row));
|
fputcsv($fp, array_values($row));
|
||||||
|
Loading…
Reference in New Issue
Block a user