MDL-65201 backup: fix wrong sorting that was missed on integration

This commit is contained in:
Eloy Lafuente (stronk7)
2019-06-06 10:08:02 +02:00
parent 4e1ee0bbb5
commit bcd4862e84
@@ -92,7 +92,7 @@ abstract class backup_cron_automated_helper {
LEFT JOIN {backup_courses} bc ON bc.courseid = c.id
WHERE bc.nextstarttime IS NULL OR bc.nextstarttime < ?
ORDER BY nextstarttime ASC,
c.timemodified ASC';
c.timemodified DESC';
$params = array(
$now, // Only get courses where the backup start time is in the past.