Permalink
Browse files

Merge branch 'm24_MDL-37394' of git://github.com/danmarsden/moodle in…

…to MOODLE_24_STABLE
  • Loading branch information...
Sam Hemelryk
Sam Hemelryk committed Jan 13, 2013
2 parents 80b6e31 + 1e503b8 commit 842524812a3aa6d271953650b01d1a794d7f6ed8
Showing with 3 additions and 0 deletions.
  1. +3 −0 mod/scorm/module.js
View
@@ -527,6 +527,9 @@ M.mod_scorm.init = function(Y, hide_nav, hide_toc, toc_title, window_name, launc
// finally activate the chosen item
var scorm_first_url = tree.getRoot().children[0];
+ if (scorm_first_url == null) { // This is probably a single sco with no children (AICC Direct uses this).
+ scorm_first_url = tree.getRoot();
+ }
scorm_first_url.title = scoes_nav[launch_sco].url;
scorm_activate_item(scorm_first_url);

0 comments on commit 8425248

Please sign in to comment.