From 8a3894de899a9dfd71d933e0dac62173781ff559 Mon Sep 17 00:00:00 2001 From: Ankit Agarwal Date: Fri, 18 Oct 2013 14:20:49 +0800 Subject: [PATCH] MDL-42427 backup: Fix undefined errors during automated backups --- backup/util/helper/backup_cron_helper.class.php | 1 + 1 file changed, 1 insertion(+) diff --git a/backup/util/helper/backup_cron_helper.class.php b/backup/util/helper/backup_cron_helper.class.php index 7e015100588..6145d84883c 100644 --- a/backup/util/helper/backup_cron_helper.class.php +++ b/backup/util/helper/backup_cron_helper.class.php @@ -168,6 +168,7 @@ abstract class backup_cron_automated_helper { // that have not been modified since previous backup. if ($shouldrunnow && !$skipped && $lastbackupwassuccessful && $config->backup_auto_skip_modif_prev) { // Check log if there were any modifications to the course content. + $sqlwhere = "course=:courseid AND time>:time AND ".$DB->sql_like('action', ':action', false, true, true); $params = array('courseid' => $course->id, 'time' => $backupcourse->laststarttime, 'action' => '%view%');