Skip to content

Commit

Permalink
Merge pull request #112 from ucfcdl/UDOIT_issue110
Browse files Browse the repository at this point in the history
Fixes issue #110
  • Loading branch information
bagofarms committed Mar 9, 2016
2 parents 39c6e61 + 100d68c commit bbb6b00
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions public/process.php
Original file line number Diff line number Diff line change
Expand Up @@ -83,9 +83,7 @@
$db_reports_table
(user_id, course_id, file_path, date_run, errors, suggestions)
VALUES
(:userid, :courseid, :filepath, :time, :errors, :suggestions)");
$now = time();
$sth->bindParam(':time', $now, PDO::PARAM_INT);
(:userid, :courseid, :filepath, CURRENT_TIMESTAMP, :errors, :suggestions)");
$sth->bindParam(':userid', $user_id, PDO::PARAM_INT);
$sth->bindParam(':courseid', $data['course_id'], PDO::PARAM_INT);
$sth->bindParam(':filepath', $file, PDO::PARAM_STR);
Expand Down

0 comments on commit bbb6b00

Please sign in to comment.