Skip to content
Permalink
Browse files

Bug fix MDL-8903

  • Loading branch information...
bobopinna
bobopinna committed Mar 15, 2007
1 parent cdfe487 commit 4ecb6a9bbb97c72f08a426edf171a1d676f60af0
Showing with 12 additions and 0 deletions.
  1. +12 −0 mod/scorm/db/upgrade.php
@@ -250,6 +250,18 @@ function xmldb_scorm_upgrade($oldversion=0) {
}
}
if ($result && $oldversion < 2007031300) {
if ($tracks = get_records('scorm_scoes_track')) {
foreach ($tracks as $track) {
$element = preg_replace('/\.N(\d+)\./',".\$1.",$track->element);
if ($track->element != $element) {
$track->element = $element;
update_record('scorm_scoes_track',$track);
}
}
}
}
return $result;
}

0 comments on commit 4ecb6a9

Please sign in to comment.
You can’t perform that action at this time.