]> git.mjollnir.org Git - moodle.git/commitdiff
Fixing some non-production values I left after testing.
authorstronk7 <stronk7>
Wed, 3 May 2006 22:05:59 +0000 (22:05 +0000)
committerstronk7 <stronk7>
Wed, 3 May 2006 22:05:59 +0000 (22:05 +0000)
Thanks James!

Merged from MOODLE_16_STABLE

backup/backup_scheduled.php

index 8111d62ef5e944d81d61be936cb67745aa876764..dfdc8f5080d7f085f4c08352efa8f576b0d7741f 100644 (file)
@@ -98,14 +98,14 @@ function schedule_backup_cron() {
                 if (!$backup_course) {
                     mtrace("            ERROR (in backup_courses detection)");
                     $status = false;
+                    continue;
                 }
                 //Now we backup every course with nextstarttime < now
                 if ($backup_course->nextstarttime > 0 && $backup_course->nextstarttime < $now) {
                     //We have to send a email because we have included at least one backup
                     $emailpending = true;
                     // Skip backup of unavailable courses that have remained unmodified in a month
-                    if (!$course->visible && ($now - $course->timemodified) > 31) {  //Hidden + unmodified last month
-                    //if (!$course->visible && ($now - $course->timemodified) > 31*24*60*60) {  //Hidden + unmodified last month
+                    if (!$course->visible && ($now - $course->timemodified) > 31*24*60*60) {  //Hidden + unmodified last month
                          mtrace("            SKIPPING - hidden+unmodified");
                          set_field("backup_courses","laststatus","3","courseid",$backup_course->courseid);
                          continue;