Skip to content

Commit

Permalink
Merge branch 'MDL-68394-master' of git://github.com/ilyatregubov/moodle
Browse files Browse the repository at this point in the history
  • Loading branch information
stronk7 committed May 27, 2021
2 parents 31ae847 + bbfb73a commit fc3238b
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions mod/h5pactivity/lib.php
Expand Up @@ -639,6 +639,7 @@ function h5pactivity_get_recent_mod_activity(array &$activities, int &$index, in

$params['cminstance'] = $cm->instance;
$params['timestart'] = $timestart;
$params['cmid'] = $cmid;

$userfieldsapi = \core_user\fields::for_userpic();
$userfields = $userfieldsapi->get_sql('u', false, '', 'userid', false)->selects;
Expand All @@ -651,6 +652,7 @@ function h5pactivity_get_recent_mod_activity(array &$activities, int &$index, in
JOIN {user} u ON u.id = h5pa.userid $groupjoin
WHERE h5pa.timemodified > :timestart
AND h5p.id = :cminstance $userselect $groupselect
AND cm.id = :cmid
ORDER BY h5pa.timemodified ASC";

if (!$submissions = $DB->get_records_sql($sql, $params)) {
Expand Down

0 comments on commit fc3238b

Please sign in to comment.