Merge branch 'MDL-79967-403-fix' of https://github.com/junpataleta/moodle into MOODLE_403_STABLE

This commit is contained in:
Paul Holden
2023-11-29 12:03:05 +00:00
+1 -1
View File
@@ -185,7 +185,7 @@ function xmldb_scorm_upgrade($oldversion) {
// Don't bother triggering this next step if the upgrade completed within the last hour.
if (time() - HOURSECS > $upgraded) {
// Get all attempts that have occurred since the upgrade.
$sql = "SELECT DISTINCT s.*, sa.userid
$sql = "SELECT DISTINCT s.id, sa.userid
FROM {scorm} s
JOIN {scorm_attempt} sa ON sa.scormid = s.id
JOIN {scorm_scoes_value} sv on sv.attemptid = sa.id