From: bobopinna Date: Thu, 18 Jan 2007 20:33:59 +0000 (+0000) Subject: Fixed an error in $score initialization X-Git-Url: http://git.mjollnir.org/gw?a=commitdiff_plain;h=a119ff9ce3be5034db8c320a69641891ccfd1604;p=moodle.git Fixed an error in $score initialization --- diff --git a/mod/scorm/report.php b/mod/scorm/report.php index 654883ea89..f9ad455b7e 100755 --- a/mod/scorm/report.php +++ b/mod/scorm/report.php @@ -173,11 +173,10 @@ foreach ($scoes as $sco) { if ($sco->launch!='') { $row = array(); + $score = ' '; if ($trackdata = scorm_get_tracks($sco->id,$user,$attempt)) { if ($trackdata->score_raw != '') { $score = $trackdata->score_raw; - } else { - $score = ' '; } if ($trackdata->status == '') { $trackdata->status = 'notattempted';