mirror of
https://github.com/moodle/moodle.git
synced 2025-08-05 00:46:50 +02:00
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:
parent
a7f9e22da6
commit
50acc61321
1 changed files with 1 additions and 1 deletions
|
@ -461,7 +461,7 @@ function scorm_update_grades($scorm=null, $userid=0, $nullifnone=true) {
|
||||||
|
|
||||||
if ($scorm != null) {
|
if ($scorm != null) {
|
||||||
if ($grades = scorm_get_user_grades($scorm, $userid)) {
|
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) {
|
} else if ($userid and $nullifnone) {
|
||||||
$grade = new object();
|
$grade = new object();
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue