Merge branch 'MDL-77988-401' of https://github.com/paulholden/moodle into MOODLE_401_STABLE
This commit is contained in:
+2
-2
@@ -366,8 +366,8 @@ function drop_plugin_tables($name, $file, $feedback=true) {
|
||||
global $CFG, $DB;
|
||||
|
||||
// first try normal delete
|
||||
if (file_exists($file) and $DB->get_manager()->delete_tables_from_xmldb_file($file)) {
|
||||
return true;
|
||||
if (file_exists($file)) {
|
||||
$DB->get_manager()->delete_tables_from_xmldb_file($file);
|
||||
}
|
||||
|
||||
// then try to find all tables that start with name and are not in any xml file
|
||||
|
||||
Reference in New Issue
Block a user