You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
lib.timecard.php had a LOT when passing functions as parameters, they were in the php 4.x style rather than the 5.x style where they needed to be quoted. Check the fork at boatright/timeclock for a php 5.5 compliant version or you can just quote all the passed functions in the code.
So, the fix for that line is
list($row_count, $total_hours, $overtime_hours, $today_hours) = $tc->walk('print_header', 'print_row', 'print_footer');
see the fork at boatright/timeclock for a php 5.5 compliant version.
first error is
Notice: Use of undefined constant print_header - assumed 'print_header' in C:\xampp\htdocs\time2\punchclock\lib.timecard.php on line 164
Notice: Use of undefined constant print_row - assumed 'print_row' in C:\xampp\htdocs\time2\punchclock\lib.timecard.php on line 164
Notice: Use of undefined constant print_footer - assumed 'print_footer' in C:\xampp\htdocs\time2\punchclock\lib.timecard.php on line 164
then if I try to edit and fix I get this error when I refresh the page
Parse error: syntax error, unexpected end of file in your code on line 174?>
•PHP Syntax Check: Errors parsing your code
?>
The text was updated successfully, but these errors were encountered: