This commit is contained in:
Huong Nguyen 2024-07-18 10:27:02 +07:00
commit 920dbc2242
No known key found for this signature in database
GPG Key ID: 40D88AB693A3E72A

View File

@ -413,10 +413,10 @@ if (!empty($command)) {
} else {
$track = new stdClass();
$track->scoid = $sco->id;
$track->element = scorm_get_elementid('cmi.core.total_time');
$track->elementid = scorm_get_elementid('cmi.core.total_time');
$track->value = $scormsession->sessiontime;
$atobject = scorm_get_attempt($aiccuser->id, $scormsession->scormid, $attempt);
$track->attempt = $atobject->id;
$track->attemptid = $atobject->id;
$track->timemodified = time();
$id = $DB->insert_record('scorm_scoes_value', $track);
}