mirror of
https://github.com/moodle/moodle.git
synced 2025-02-15 21:36:58 +01:00
Fixed a problem with credit/no-credit
This commit is contained in:
parent
f7b09029a2
commit
d70066404d
@ -47,16 +47,16 @@
|
||||
if (isset($mode)) {
|
||||
$userdata->mode = $mode;
|
||||
}
|
||||
if ($userdata->mode == 'normal') {
|
||||
$userdata->credit = 'credit';
|
||||
} else {
|
||||
$userdata->credit = 'no-credit';
|
||||
}
|
||||
if ($sco = get_record('scorm_scoes','id',$scoid)) {
|
||||
$userdata->datafromlms = $sco->datafromlms;
|
||||
$userdata->masteryscore = $sco->masteryscore;
|
||||
$userdata->maxtimeallowed = $sco->maxtimeallowed;
|
||||
$userdata->timelimitaction = $sco->timelimitaction;
|
||||
if (!empty($sco->masteryscore)) {
|
||||
$userdata->credit = 'credit';
|
||||
} else {
|
||||
$userdata->credit = 'no-credit';
|
||||
}
|
||||
} else {
|
||||
error('Sco not found');
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user