Skip to content
Browse files

MDL-28971 - SCORM_TOC_DISABLED is not available in 2.0 - only availab…

…le in 2.1 and higher
  • Loading branch information...
1 parent 9d228de commit c9a08027944345b2cca05d625f273d2fa394b3f9 @danmarsden danmarsden committed Aug 17, 2011
Showing with 1 addition and 1 deletion.
  1. +1 −1 mod/scorm/db/upgrade.php
View
2 mod/scorm/db/upgrade.php
@@ -548,7 +548,7 @@ function xmldb_scorm_upgrade($oldversion) {
require_once($CFG->dirroot."/mod/scorm/lib.php");
$rs = $DB->get_recordset('scorm', array('popup' => 1), '', 'id,hidetoc,hidenav');
foreach ($rs as $scorm) {
- $scorm->hidetoc = SCORM_TOC_DISABLED;
+ $scorm->hidetoc = 1;
$scorm->hidenav = 1;
$DB->update_record('scorm', $scorm);
}

0 comments on commit c9a0802

Please sign in to comment.
Something went wrong with that request. Please try again.