File tree Expand file tree Collapse file tree 1 file changed +9
-10
lines changed Expand file tree Collapse file tree 1 file changed +9
-10
lines changed Original file line number Diff line number Diff line change 66
66
67
67
$ launch = false ; // Does this automatically trigger a launch based on skipview.
68
68
if (!empty ($ scorm ->popup )) {
69
- $ orgidentifier = '' ;
70
-
71
69
$ scoid = 0 ;
72
70
$ orgidentifier = '' ;
73
71
74
72
$ result = scorm_get_toc ($ USER , $ scorm , $ cm ->id , TOCFULLURL );
75
73
// Set last incomplete sco to launch first.
76
74
if (!empty ($ result ->sco ->id )) {
77
- $ scoid = $ result ->sco -> id ;
75
+ $ sco = $ result ->sco ;
78
76
} else {
79
- if ($ sco = scorm_get_sco ($ scorm ->launch , SCO_ONLY )) {
80
- if (($ sco ->organization == '' ) && ($ sco ->launch == '' )) {
81
- $ orgidentifier = $ sco ->identifier ;
82
- } else {
83
- $ orgidentifier = $ sco ->organization ;
84
- }
85
- $ scoid = $ sco ->id ;
77
+ $ sco = scorm_get_sco ($ scorm ->launch , SCO_ONLY );
78
+ }
79
+ if (!empty ($ sco )) {
80
+ $ scoid = $ sco ->id ;
81
+ if (($ sco ->organization == '' ) && ($ sco ->launch == '' )) {
82
+ $ orgidentifier = $ sco ->identifier ;
83
+ } else {
84
+ $ orgidentifier = $ sco ->organization ;
86
85
}
87
86
}
88
87
You can’t perform that action at this time.
0 commit comments