mirror of
https://github.com/moodle/moodle.git
synced 2025-04-14 04:52:36 +02:00
MDL-30577, fixing cmi.credit, cmi.mode are not evaluated correctly
This commit is contained in:
parent
d0e016f53f
commit
ab94be6bd1
@ -75,7 +75,7 @@ if ($usertrack = scorm_get_tracks($scoid, $USER->id, $attempt)) {
|
||||
$userdata->student_id = addslashes_js($USER->username);
|
||||
$userdata->student_name = addslashes_js($USER->lastname .', '. $USER->firstname);
|
||||
$userdata->mode = 'normal';
|
||||
if (isset($mode)) {
|
||||
if (!empty($mode)) {
|
||||
$userdata->mode = $mode;
|
||||
}
|
||||
if ($userdata->mode == 'normal') {
|
||||
|
Loading…
x
Reference in New Issue
Block a user