Skip to content

Commit

Permalink
MDL-44938 SCORM: missing constant definition during upgrade.
Browse files Browse the repository at this point in the history
  • Loading branch information
danmarsden committed Apr 3, 2014
1 parent ad32dda commit e0eac0c
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions mod/scorm/db/upgrade.php
Original file line number Diff line number Diff line change
Expand Up @@ -83,6 +83,7 @@ function xmldb_scorm_upgrade($oldversion) {

// Remove old imsrepository type - convert any existing records to external type to help prevent major errors.
if ($oldversion < 2013081301) {
require_once($CFG->dirroot . '/mod/scorm/lib.php');
$scorms = $DB->get_recordset('scorm', array('scormtype' => 'imsrepository'));
foreach ($scorms as $scorm) {
$scorm->scormtype = SCORM_TYPE_EXTERNAL;
Expand Down

0 comments on commit e0eac0c

Please sign in to comment.