Permalink
Browse files

MDL-42427 backup: Fix undefined errors during automated backups

  • Loading branch information...
1 parent 60ca7d5 commit 8a3894de899a9dfd71d933e0dac62173781ff559 @ankitagarwal ankitagarwal committed Oct 18, 2013
Showing with 1 addition and 0 deletions.
  1. +1 −0 backup/util/helper/backup_cron_helper.class.php
@@ -168,6 +168,7 @@ public static function run_automated_backup($rundirective = self::RUN_ON_SCHEDUL
// 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%');

0 comments on commit 8a3894d

Please sign in to comment.