From 8c39e2740f9650abd8b0b748ea790477ee64f788 Mon Sep 17 00:00:00 2001 From: moodler Date: Sat, 27 Dec 2003 03:14:32 +0000 Subject: [PATCH] FIxed a small bug when updating the next time --- backup/backup_scheduled.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/backup/backup_scheduled.php b/backup/backup_scheduled.php index 50ea51b974..7223f129ee 100644 --- a/backup/backup_scheduled.php +++ b/backup/backup_scheduled.php @@ -16,7 +16,7 @@ function schedule_backup_cron() { //First of all, we have to see if the scheduled is active and detect //that there isn't another cron running - echo " Checking status"; + echo " Checking backup status"; $backup_config = backup_get_config(); if(!isset($backup_config->backup_sche_active) || !$backup_config->backup_sche_active) { echo "...INACTIVE\n"; @@ -82,7 +82,7 @@ function schedule_backup_cron() { //Now, calculate next execution of the course $nextstarttime = schedule_backup_next_execution ($backup_course,$backup_config,$now,$admin->timezone); //Save it to db - set_field("backup_courses","nextstarttime",$nextstarttime,"id",$backup_course->courseid); + set_field("backup_courses","nextstarttime",$nextstarttime,"courseid",$backup_course->courseid); //Print it to screen as necessary $showtime = "undefined"; if ($nextstarttime > 0) { -- 2.39.5