Topic: Error when printing to Excel

When I print to Excel I get the message:
count(): Parameter must be an array or an object that implements Countable in file: /var/www/html/accounts/reporting/includes/excel_report.inc at line 243

and

count(): Parameter must be an array or an object that implements Countable in file: /var/www/html/accounts/reporting/includes/Workbook.php at line 6656

But the report still works.

How do I fix this please?

Regards Barry

Re: Error when printing to Excel

Check this post for similar fix as it has to do with your later PHP version.

@joe: can commit it for this file as well.

Re: Error when printing to Excel

Committed