From: stronk7 Date: Sun, 30 Nov 2003 18:58:37 +0000 (+0000) Subject: Scheduled weekdays are now stored in DB X-Git-Url: http://git.mjollnir.org/gw?a=commitdiff_plain;h=69c7eba7336628d3a98d6c36e67baeb52d09b31c;p=moodle.git Scheduled weekdays are now stored in DB --- diff --git a/admin/backup.php b/admin/backup.php index fdab034dc1..bca671524e 100644 --- a/admin/backup.php +++ b/admin/backup.php @@ -18,6 +18,24 @@ /// If data submitted, then process and store. if ($config = data_submitted()) { + //We need to do some weekdays conversions prior to continue + $i = 0; + $temp = ""; + $a_config = (array)$config; + while ($i<7) { + $tocheck = "dayofweek_".$i; + if (isset($a_config[$tocheck])) { + $temp .= "1"; + } else { + $temp .= "0"; + } + unset($a_config[$tocheck]); + $i++; + } + $a_config['backup_sche_weekdays'] = $temp; + $config = (object)$a_config; + //weekdays conversions done. Continue + print_header(); foreach ($config as $name => $value) { backup_set_config($name, $value);