Skip to content
Browse files

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

…es data exists
  • Loading branch information...
1 parent 5f1d8f2 commit 63945c8de2f42eb3b68bec3e9ea6ca1356f09306 @aolley aolley committed
Showing with 0 additions and 2 deletions.
  1. +0 −2 mod/scorm/lib.php
View
2 mod/scorm/lib.php
@@ -272,8 +272,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 63945c8

Please sign in to comment.
Something went wrong with that request. Please try again.