]> git.sur5r.net Git - bacula/bacula/commitdiff
baculum: Fix undefined offset error during saving director config
authorMarcin Haba <marcin.haba@bacula.pl>
Fri, 15 Sep 2017 05:51:54 +0000 (07:51 +0200)
committerMarcin Haba <marcin.haba@bacula.pl>
Fri, 15 Sep 2017 05:54:36 +0000 (07:54 +0200)
gui/baculum/protected/API/Class/BaculaSetting.php

index 0919ad47211e35dc915cb7b41054edc945570149..c74cf58c377e4fad6c873f2c669eaeb60a30ff31 100644 (file)
@@ -236,7 +236,7 @@ class BaculaSetting extends APIModule {
                                                        $day = count($directive_value[$i]['Day']) === 31 ? '' : 'on ' . implode(',', $directive_value[$i]['Day']);
                                                        $month = Params::getMonthsConfig($directive_value[$i]['Month']);
                                                        $week = Params::getWeeksConfig($directive_value[$i]['WeekOfMonth']);
-                                                       $wday = Params::getWeeksConfig($directive_value[$i]['DayOfWeek']);
+                                                       $wday = Params::getWdaysConfig($directive_value[$i]['DayOfWeek']);
                                                        $value = array($overwrite_directive, $month, $week, $day, $wday, $hourly, 'at', "$hour:$minute");
                                                        $value = array_filter($value);
                                                        if (!array_key_exists($directive_name, $resource[$resource_type])) {