MDL-46805 mod_scorm: Re-fix as previous object was removed in 2.8

This commit is contained in:
David Monllao
2015-04-02 11:09:30 +02:00
committed by Eloy Lafuente (stronk7)
parent e43bf473fa
commit 0adf7044ff
+3 -2
View File
@@ -111,7 +111,8 @@ if (!empty($command)) {
$userdata->status = '';
$userdata->score_raw = '';
}
if (!empty($cfg_scorm->aiccuserid)) {
$aiccuserid = get_config('scorm', 'aiccuserid');
if (!empty($aiccuserid)) {
$userdata->student_id = $aiccuser->id;
} else {
$userdata->student_id = $aiccuser->username;
@@ -443,4 +444,4 @@ if (empty($cfgscorm->allowaicchacp)) {
$aiccresponse = ob_get_contents();
scorm_debug_log_write("aicc", "HACP Response:\r\n$aiccresponse", $scoid);
ob_end_flush();
ob_end_flush();