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:
+1
-1
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user