Skip to content

Commit

Permalink
SCORM AICC MDL-30223 invalid call to update_record - very hard to tes…
Browse files Browse the repository at this point in the history
…t/reproduce.
  • Loading branch information
danmarsden committed Nov 15, 2011
1 parent e25ecdf commit 71923e9
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions mod/scorm/datamodels/aicclib.php
Expand Up @@ -237,6 +237,7 @@ function scorm_parse_aicc($scorm) {
//print_r($sco); //print_r($sco);
if ($ss = $DB->get_record('scorm_scoes', array('scorm'=>$scorm->id,'identifier'=>$sco->identifier))) { if ($ss = $DB->get_record('scorm_scoes', array('scorm'=>$scorm->id,'identifier'=>$sco->identifier))) {
$id = $ss->id; $id = $ss->id;
$sco->id = $id;
$DB->update_record('scorm_scoes',$sco); $DB->update_record('scorm_scoes',$sco);
unset($oldscoes[$id]); unset($oldscoes[$id]);
} else { } else {
Expand Down

0 comments on commit 71923e9

Please sign in to comment.