From 8dbff42716d4155fe9f0e75a0d8ac062e287e033 Mon Sep 17 00:00:00 2001 From: Dan Marsden Date: Tue, 1 Aug 2023 14:47:51 +1200 Subject: [PATCH] MDL-78865 mod_scorm: AICC HACP - fix update of total time value. --- mod/scorm/aicc.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mod/scorm/aicc.php b/mod/scorm/aicc.php index 38aae294459..6297a300aa0 100644 --- a/mod/scorm/aicc.php +++ b/mod/scorm/aicc.php @@ -405,7 +405,7 @@ if (!empty($command)) { $track->scoid = $sco->id; $track->element = scorm_get_elementid('cmi.core.total_time'); $track->value = $scormsession->sessiontime; - $atobject = scorm_get_attempt($userid, $scormsession->scormid, $attempt); + $atobject = scorm_get_attempt($aiccuser->id, $scormsession->scormid, $attempt); $track->attempt = $atobject->id; $track->timemodified = time(); $id = $DB->insert_record('scorm_scoes_value', $track);