MDL-38734: Automated backup failure causing all course to fail

This commit is contained in:
Tony Levi
2013-10-18 15:04:22 +08:00
committed by Dan Poltawski
parent 5c740905f5
commit cd9c46207d
2 changed files with 5 additions and 2 deletions
@@ -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
}
}
/**