Merge branch 'MDL-36828_23' of https://github.com/aolley/moodle into MOODLE_23_STABLE
authorDan Poltawski <dan@moodle.com>
Tue, 11 Dec 2012 03:44:40 +0000 (11:44 +0800)
committerDan Poltawski <dan@moodle.com>
Tue, 11 Dec 2012 03:44:40 +0000 (11:44 +0800)
mod/scorm/lib.php

index c3de373..dd410bb 100644 (file)
@@ -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;