MDL-9552 reverting the [$userid] change - we do need array there in upgrades and changes in modedit; merged from MOODLE_19_STABLE

This commit is contained in:
skodak 2007-12-26 23:21:38 +00:00
parent a7f9e22da6
commit 50acc61321

View file

@ -461,7 +461,7 @@ function scorm_update_grades($scorm=null, $userid=0, $nullifnone=true) {
if ($scorm != null) {
if ($grades = scorm_get_user_grades($scorm, $userid)) {
scorm_grade_item_update($scorm, $grades[$userid]);
scorm_grade_item_update($scorm, $grades);
} else if ($userid and $nullifnone) {
$grade = new object();