mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-11-28 02:43:22 +01:00
Fix error Unsupported operand types: int + stringPHP
This commit is contained in:
parent
4d73fe42ca
commit
8d33f4c154
@ -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