Permalink
Browse files

SCORM AICC MDL-30223 invalid call to update_record - very hard to tes…

…t/reproduce.
  • Loading branch information...
1 parent 6be90ce commit d3bf0a950f0b3d04ef579d8edd88f92fb0f679b6 @danmarsden danmarsden committed Nov 11, 2011
Showing with 2 additions and 1 deletion.
  1. +2 −1 mod/scorm/datamodels/aicclib.php
@@ -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);

0 comments on commit d3bf0a9

Please sign in to comment.