From 9e8f37a46df567d8ae1c6aa58c6bca7eb44acbde Mon Sep 17 00:00:00 2001 From: Marcin Haba Date: Fri, 15 Sep 2017 07:51:54 +0200 Subject: [PATCH] baculum: Fix undefined offset error during saving director config --- gui/baculum/protected/API/Class/BaculaSetting.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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])) { -- 2.39.5