Skip to content

Commit

Permalink
POET - Fixing other incorrect uses of double quotes for Postgres.
Browse files Browse the repository at this point in the history
  • Loading branch information
Mike Churchward committed Oct 3, 2016
1 parent 8dea0f0 commit 0834ecd
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib.php
Original file line number Diff line number Diff line change
Expand Up @@ -1296,7 +1296,7 @@ function report_ncccscensus_build_grades_array($courseid, $users, $startdate, $e
LEFT JOIN {assign_grades} ag ON ag.assignment = a.id AND ag.userid = s.userid
INNER JOIN {user} u ON u.id = s.userid AND s.userid in ('.$users.')
WHERE a.course = :courseid
AND s.status NOT IN ("'.ASSIGN_SUBMISSION_STATUS_NEW.'", "'.ASSIGN_SUBMISSION_STATUS_DRAFT.'")
AND s.status NOT IN (\''.ASSIGN_SUBMISSION_STATUS_NEW.'\', \''.ASSIGN_SUBMISSION_STATUS_DRAFT.'\')
AND s.userid != 0
AND gi.itemmodule = \'assign\'
AND s.timemodified >= :timestart
Expand Down Expand Up @@ -1356,7 +1356,7 @@ function report_ncccscensus_build_grades_array($courseid, $users, $startdate, $e
LEFT JOIN {quiz_grades} qg ON qg.quiz = qu.id AND qg.userid = q.userid
INNER JOIN {user} u ON u.id = q.userid AND q.userid in ('.$users.')
WHERE qu.course = :courseid
AND q.state NOT IN ("'.quiz_attempt::IN_PROGRESS.'", "'.quiz_attempt::ABANDONED.'")
AND q.state NOT IN (\''.quiz_attempt::IN_PROGRESS.'\', \''.quiz_attempt::ABANDONED.'\')
AND q.userid != 0
AND gi.itemmodule = \'quiz\'
AND q.timefinish >= :timestart
Expand Down

0 comments on commit 0834ecd

Please sign in to comment.