Permalink
Browse files

MDL-36828: mod_scorm: Allow deletion of scorm modules if no scorm_sco…

…es data exists
  • Loading branch information...
1 parent f42c34a commit d68407411429e00cbeacec1cc22d28539d327042 @aolley aolley committed Nov 26, 2012
Showing with 0 additions and 2 deletions.
  1. +0 −2 mod/scorm/lib.php
View
@@ -278,8 +278,6 @@ function scorm_delete_instance($id) {
}
}
$DB->delete_records('scorm_scoes', array('scorm'=>$scorm->id));
- } else {
- $result = false;
}
if (! $DB->delete_records('scorm', array('id'=>$scorm->id))) {
$result = false;

0 comments on commit d684074

Please sign in to comment.