]> git.mjollnir.org Git - moodle.git/commitdiff
FIxed a small bug when updating the next time
authormoodler <moodler>
Sat, 27 Dec 2003 03:14:32 +0000 (03:14 +0000)
committermoodler <moodler>
Sat, 27 Dec 2003 03:14:32 +0000 (03:14 +0000)
backup/backup_scheduled.php

index 50ea51b9748fb48ffb5fa93211b7da40d4f7627e..7223f129eee3fd7bca483993a223c45d27ca931e 100644 (file)
@@ -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) {