Skip to content

Commit

Permalink
MDL-37546 Assignment fix assign_get_recent_mod_activity code cleanup …
Browse files Browse the repository at this point in the history
…regression.
  • Loading branch information
Damyon Wiese committed Jan 16, 2013
1 parent 50ac16b commit f93fdce
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions mod/assign/lib.php
Original file line number Diff line number Diff line change
Expand Up @@ -616,13 +616,13 @@ function assign_get_recent_mod_activity(&$activities,

$userfields = user_picture::fields('u', null, 'userid');

if (!$submissions = $DB->get_records_sql('SELECT asb.id, asb.timemodified,
$userfields
FROM {assign_submission} asb
JOIN {assign} a ON a.id = asb.assignment
JOIN {user} u ON u.id = asb.userid
$groupjoin
WHERE asb.timemodified > :timestart AND
if (!$submissions = $DB->get_records_sql('SELECT asb.id, asb.timemodified, ' .
$userfields .
' FROM {assign_submission} asb
JOIN {assign} a ON a.id = asb.assignment
JOIN {user} u ON u.id = asb.userid ' .
$groupjoin .
' WHERE asb.timemodified > :timestart AND
a.id = :cminstance
' . $userselect . ' ' . $groupselect .
' ORDER BY asb.timemodified ASC', $params)) {
Expand Down

0 comments on commit f93fdce

Please sign in to comment.