Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

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

…es data exists
  • Loading branch information...
commit d68407411429e00cbeacec1cc22d28539d327042 1 parent f42c34a
@aolley aolley authored
Showing with 0 additions and 2 deletions.
  1. +0 −2  mod/scorm/lib.php
View
2  mod/scorm/lib.php
@@ -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;
Please sign in to comment.
Something went wrong with that request. Please try again.