Anuko Time Tracker 1.19.8.5052 - reports error

Discussion forum about Anuko Time Tracker
Post Reply
AlAraf
Posts: 7
Joined: Thu Aug 29, 2019 4:26 pm

Anuko Time Tracker 1.19.8.5052 - reports error

Post by AlAraf » Mon Sep 02, 2019 10:55 pm

I noticed an error in log file when I entered to Reports:

root@local:/# cat /var/log/apache2/timetracker.mydomain.com_error.log
[Tue Sep 03 00:32:15.091402 2019] [:error] [pid 4355] [client 1.1.1.1:5378] PHP Warning: Invalid argument supplied for foreach() in /var/www/timetracker.mydomain.com/WEB-INF/lib/ttReportHelper.class.php on line 1603, referer: https://timetracker.mydomain.com/reports.php

wrc
Posts: 284
Joined: Tue May 25, 2010 8:30 pm

Re: Anuko Time Tracker 1.19.8.5052 - reports error

Post by wrc » Wed Sep 04, 2019 2:13 pm

Line # 1603:

Code: Select all

foreach ($inactive_users_in_bean as $user_in_bean) {
  if (!in_array($user_in_bean, $valid_ids)) {
    return false;
  }
}
Nothing to worry about as you don't have inactive users in group.

AlAraf
Posts: 7
Joined: Thu Aug 29, 2019 4:26 pm

Re: Anuko Time Tracker 1.19.8.5052 - reports error

Post by AlAraf » Wed Sep 04, 2019 10:22 pm

At the moment I don't have inactive users, but in can change in the future. It would be nice to fix the code to avoid errors in syslog.

Post Reply