Skip to content
Browse files

Fixed a problem with credit/no-credit

  • Loading branch information...
1 parent f7b0902 commit d70066404d36960f8c32ceedd25ff2d14278247e bobopinna committed May 20, 2005
Showing with 5 additions and 5 deletions.
  1. +5 −5 mod/scorm/api.php
View
10 mod/scorm/api.php
@@ -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');
}

0 comments on commit d700664

Please sign in to comment.
Something went wrong with that request. Please try again.