Skip to content

Commit

Permalink
SCORM MDL-18857 allow items with a score of 0 to still display on out…
Browse files Browse the repository at this point in the history
…line report. merged from HEAD
  • Loading branch information
danmarsden committed Dec 18, 2009
1 parent 2dae979 commit d2f35f4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion mod/scorm/locallib.php
Original file line number Diff line number Diff line change
Expand Up @@ -454,7 +454,7 @@ function scorm_grade_user_attempt($scorm, $userid, $attempt=1, $time=false) {
if (($userdata->status == 'completed') || ($userdata->status == 'passed')) {
$attemptscore->scoes++;
}
if (!empty($userdata->score_raw)) {
if (isset($userdata->score_raw)) {
$attemptscore->values++;
$attemptscore->sum += $userdata->score_raw;
$attemptscore->max = ($userdata->score_raw > $attemptscore->max)?$userdata->score_raw:$attemptscore->max;
Expand Down

0 comments on commit d2f35f4

Please sign in to comment.