Skip to content

Commit

Permalink
Merge branch 'master_MDL-30223' of git://github.com/danmarsden/moodle
Browse files Browse the repository at this point in the history
  • Loading branch information
stronk7 committed Nov 23, 2011
2 parents 1316fc8 + d3bf0a9 commit ea46fcb
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion mod/scorm/datamodels/aicclib.php
Original file line number Diff line number Diff line change
Expand Up @@ -252,7 +252,8 @@ function scorm_parse_aicc($scorm) {
if ($ss = $DB->get_record('scorm_scoes', array('scorm'=>$scorm->id,
'identifier'=>$sco->identifier))) {
$id = $ss->id;
$DB->update_record('scorm_scoes', $sco);
$sco->id = $id;
$DB->update_record('scorm_scoes',$sco);
unset($oldscoes[$id]);
} else {
$id = $DB->insert_record('scorm_scoes', $sco);
Expand Down

0 comments on commit ea46fcb

Please sign in to comment.