diff --git a/mod/scorm/aicc.php b/mod/scorm/aicc.php index ce176d9cb97..14bcb9904a9 100644 --- a/mod/scorm/aicc.php +++ b/mod/scorm/aicc.php @@ -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(); \ No newline at end of file +ob_end_flush();