From: Marcin Haba Date: Fri, 15 Sep 2017 05:51:54 +0000 (+0200) Subject: baculum: Fix undefined offset error during saving director config X-Git-Tag: Release-9.0.5~42 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=9e8f37a46df567d8ae1c6aa58c6bca7eb44acbde;p=bacula%2Fbacula baculum: Fix undefined offset error during saving director config --- diff --git a/gui/baculum/protected/API/Class/BaculaSetting.php b/gui/baculum/protected/API/Class/BaculaSetting.php index 0919ad4721..c74cf58c37 100644 --- a/gui/baculum/protected/API/Class/BaculaSetting.php +++ b/gui/baculum/protected/API/Class/BaculaSetting.php @@ -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])) {