diff --git a/mod/h5pactivity/lib.php b/mod/h5pactivity/lib.php index 5ab26d7f1f0..a497e9d7db5 100644 --- a/mod/h5pactivity/lib.php +++ b/mod/h5pactivity/lib.php @@ -584,7 +584,7 @@ function h5pactivity_print_recent_activity($course, bool $viewfullnames, int $ti JOIN {course_modules} cm ON cm.instance = h5p.id JOIN {modules} md ON md.id = cm.module JOIN {user} u ON u.id = h5pa.userid - WHERE h5pa.timemodified > ? + WHERE h5pa.timemodified >= ? AND h5p.course = ? AND md.name = ? ORDER BY h5pa.timemodified ASC"; @@ -669,7 +669,7 @@ function h5pactivity_get_recent_mod_activity(array &$activities, int &$index, in JOIN {course_modules} cm ON cm.instance = h5p.id JOIN {modules} md ON md.id = cm.module JOIN {user} u ON u.id = h5pa.userid $groupjoin - WHERE h5pa.timemodified > :timestart + WHERE h5pa.timemodified >= :timestart AND h5p.id = :cminstance $userselect $groupselect AND cm.id = :cmid ORDER BY h5pa.timemodified ASC";