Page 1 of 1

foreach() ERROR in ttReportHelper.class.php on line 1617

Posted: Tue Oct 08, 2019 9:51 pm
by belgvr
PHP Warning: Invalid argument supplied for foreach() in C:\inetpub\wwwroot\timeclock\WEB-INF\lib\ttReportHelper.class.php on line 1617

This is what i get when trying to generate a report.

Re: foreach() ERROR in ttReportHelper.class.php on line 1617

Posted: Wed Oct 16, 2019 4:51 pm
by Nik
It was happening because the array of inactive users is NULL (no inactive users selected).

Nothing to worry about, but fixed and got rid of the warning in version 1.19.12.5159.

Re: foreach() ERROR in ttReportHelper.class.php on line 1617

Posted: Wed Oct 16, 2019 6:35 pm
by belgvr
Nik wrote:
Wed Oct 16, 2019 4:51 pm
It was happening because the array of inactive users is NULL (no inactive users selected).

Nothing to worry about, but fixed and got rid of the warning in version 1.19.12.5159.
and how did you fix it?

Re: foreach() ERROR in ttReportHelper.class.php on line 1617

Posted: Wed Oct 16, 2019 7:31 pm
by Nik
By casting to array whatever $bean->getAttribute() returns. See changes here.