mirror of
https://github.com/moodle/moodle.git
synced 2025-01-18 22:08:20 +01:00
MDL-14679 converted some deletes
This commit is contained in:
parent
5053f00f33
commit
3b0f746be9
@ -70,8 +70,8 @@ function schedule_backup_cron() {
|
||||
//Search if it exists
|
||||
if (!$exists = $DB->get_record('course', array('id'=>$bckcourse->courseid))) {
|
||||
//Doesn't exist, so delete from backup tables
|
||||
delete_records('backup_courses', 'courseid', "$bckcourse->courseid");
|
||||
delete_records('backup_log', 'courseid', "$bckcourse->courseid");
|
||||
$DB->delete_records('backup_courses', array('courseid'=>$bckcourse->courseid));
|
||||
$DB->delete_records('backup_log', array('courseid'=>$bckcourse->courseid));
|
||||
$skipped++;
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user