Skip to content

Commit

Permalink
SCORM MDL-23498 remove var from function that is never called - it is…
Browse files Browse the repository at this point in the history
… always the default (false) as it is never used - seems to date back to commit in 2006
  • Loading branch information
danmarsden committed Jul 23, 2010
1 parent 8c5516d commit c0f6b60
Showing 1 changed file with 2 additions and 10 deletions.
12 changes: 2 additions & 10 deletions mod/scorm/locallib.php
Original file line number Diff line number Diff line change
Expand Up @@ -512,7 +512,7 @@ function scorm_get_user_data($userid) {
return $DB->get_record('user', array('id'=>$userid),'firstname, lastname, picture');
}

function scorm_grade_user_attempt($scorm, $userid, $attempt=1, $time=false) {
function scorm_grade_user_attempt($scorm, $userid, $attempt=1) {
global $DB;
$attemptscore = NULL;
$attemptscore->scoes = 0;
Expand Down Expand Up @@ -563,15 +563,7 @@ function scorm_grade_user_attempt($scorm, $userid, $attempt=1, $time=false) {
$score = $attemptscore->max; // Remote Learner GRADEHIGHEST is default
}

if ($time) {
$result = new stdClass();
$result->score = $score;
$result->time = $attemptscore->lastmodify;
} else {
$result = $score;
}

return $result;
return $score;
}

function scorm_grade_user($scorm, $userid) {
Expand Down

0 comments on commit c0f6b60

Please sign in to comment.