Skip to content

Commit

Permalink
Merge branch 'MDL-41092-master' of git://github.com/ankitagarwal/moodle
Browse files Browse the repository at this point in the history
  • Loading branch information
Damyon Wiese authored and Sam Hemelryk committed Nov 1, 2013
2 parents 4d2bd67 + 9f3da40 commit bb1a600
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions mod/assign/locallib.php
Original file line number Diff line number Diff line change
Expand Up @@ -1560,8 +1560,8 @@ public static function cron() {
$timenow = time();

// Collect all submissions from the past 24 hours that require mailing.
$sql = 'SELECT a.course, a.name, a.blindmarking, a.revealidentities,
g.*, g.id as gradeid, g.timemodified as lastmodified
$sql = 'SELECT g.id as gradeid, a.course, a.name, a.blindmarking, a.revealidentities,
g.*, g.timemodified as lastmodified
FROM {assign} a
JOIN {assign_grades} g ON g.assignment = a.id
LEFT JOIN {assign_user_flags} uf ON uf.assignment = a.id AND uf.userid = g.userid
Expand Down

0 comments on commit bb1a600

Please sign in to comment.