Permalink
Browse files

Merge branch 'MOODLE_19_STABLE' of github.com:danmarsden/moodle into …

…MOODLE_19_STABLE
  • Loading branch information...
2 parents 93b89ca + cb1e1bc commit 53c8f1056f37530b80d00b1e0b1d6d33f57e027e @skodak skodak committed Dec 27, 2010
Showing with 1 addition and 1 deletion.
  1. +1 −1 mod/scorm/locallib.php
View
@@ -445,7 +445,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) || ($scorm->type=='sco' && isset($userdata->score_raw))) {
+ if (!empty($userdata->score_raw) || (isset($scorm->type) && $scorm->type=='sco' && isset($userdata->score_raw))) {
$attemptscore->values++;
$attemptscore->sum += $userdata->score_raw;
$attemptscore->max = ($userdata->score_raw > $attemptscore->max)?$userdata->score_raw:$attemptscore->max;

0 comments on commit 53c8f10

Please sign in to comment.