MDL-46805 mod_scorm: Re-fix as previous object was removed in 2.8
authorDavid Monllao <davidm@moodle.com>
Thu, 2 Apr 2015 08:17:56 +0000 (16:17 +0800)
committerEloy Lafuente (stronk7) <stronk7@moodle.org>
Thu, 2 Apr 2015 09:09:30 +0000 (11:09 +0200)
mod/scorm/aicc.php

index ce176d9..14bcb99 100644 (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();
\ No newline at end of file
+ob_end_flush();