SCORM MDL-20955 fix bad use of update_record - thanks Petr
This commit is contained in:
@@ -215,7 +215,9 @@ function scorm_parse_aicc($pkgdir,$scormid) {
|
||||
|
||||
//print_r($sco);
|
||||
if (get_record('scorm_scoes','scorm',$scormid,'identifier',$sco->identifier)) {
|
||||
$id = update_record('scorm_scoes',addslashes_recursive($sco));
|
||||
if (update_record('scorm_scoes',addslashes_recursive($sco))) {
|
||||
$id = $oldscoes[$id]->id;
|
||||
}
|
||||
unset($oldscoes[$id]);
|
||||
} else {
|
||||
$id = insert_record('scorm_scoes',addslashes_recursive($sco));
|
||||
|
||||
Reference in New Issue
Block a user