From: Dan Marsden Date: Fri, 18 Dec 2009 07:22:50 +0000 (+0000) Subject: SCORM MDL-18857 allow items with a score of 0 to still display on outline report. X-Git-Url: http://git.mjollnir.org/gw?a=commitdiff_plain;h=f6f7efeefbccc451e39f9a936a88c1cbc3bccfa6;p=moodle.git SCORM MDL-18857 allow items with a score of 0 to still display on outline report. --- diff --git a/mod/scorm/locallib.php b/mod/scorm/locallib.php index 8fc5536f8a..d8811c2703 100755 --- a/mod/scorm/locallib.php +++ b/mod/scorm/locallib.php @@ -520,7 +520,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;