MDL-38734: Automated backup failure causing all course to fail
This commit is contained in:
@@ -164,8 +164,10 @@ abstract class backup_controller_dbops extends backup_dbops {
|
||||
$dbman = $DB->get_manager(); // We are going to use database_manager services
|
||||
|
||||
$targettablename = 'backup_ids_temp';
|
||||
$table = new xmldb_table($targettablename);
|
||||
$dbman->drop_table($table); // And drop it
|
||||
if ($dbman->table_exists($targettablename)) {
|
||||
$table = new xmldb_table($targettablename);
|
||||
$dbman->drop_table($table); // And drop it
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user