diff --git a/mod/scorm/locallib.php b/mod/scorm/locallib.php index 1d4b97134cf..14579b60057 100644 --- a/mod/scorm/locallib.php +++ b/mod/scorm/locallib.php @@ -107,7 +107,7 @@ function scorm_get_skip_view_array(){ * @return array an array of hide table of contents options */ function scorm_get_hidetoc_array() { - return array(SCORM_TOC_SIDE =>get_string('sided', 'scorm'), + return array(SCORM_TOC_SIDE => get_string('sided', 'scorm'), SCORM_TOC_HIDDEN => get_string('hidden', 'scorm'), SCORM_TOC_POPUP => get_string('popupmenu', 'scorm'), SCORM_TOC_DISABLED => get_string('disabled', 'scorm')); diff --git a/mod/scorm/module.js b/mod/scorm/module.js index 188b0bdf5bd..b6c43a80461 100644 --- a/mod/scorm/module.js +++ b/mod/scorm/module.js @@ -31,10 +31,8 @@ M.mod_scorm.init = function(Y, hide_nav, hide_toc, toc_title, window_name, launc var scorm_disable_toc = false; var scorm_hide_nav = true; var scorm_hide_toc = true; - if (hide_nav == 0) { - scorm_hide_nav = false; - } if (hide_toc == 0) { + scorm_hide_nav = false; scorm_hide_toc = false; } else if (hide_toc == 3) { scorm_disable_toc = true;