Merge branch 'MDL-77988-401' of https://github.com/paulholden/moodle into MOODLE_401_STABLE

This commit is contained in:
Jun Pataleta
2023-08-25 10:35:45 +08:00
+2 -2
View File
@@ -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