From f6f7efeefbccc451e39f9a936a88c1cbc3bccfa6 Mon Sep 17 00:00:00 2001 From: Dan Marsden Date: Fri, 18 Dec 2009 07:22:50 +0000 Subject: [PATCH] SCORM MDL-18857 allow items with a score of 0 to still display on outline report. --- mod/scorm/locallib.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; -- 2.39.5