From 0fbdaee3fdb279bed27e416b86df0b2fe66f16b8 Mon Sep 17 00:00:00 2001 From: Alexander Smirnov Date: Wed, 25 Sep 2024 15:29:59 +0300 Subject: [PATCH] =?utf8?q?[ERP-195]=20=D0=95=D1=81=D0=BB=D0=B8=20=D0=BA?= =?utf8?q?=D0=B0=D0=BB=D0=B5=D0=BD=D0=B4=D0=B0=D1=80=D1=8C=20=D0=BD=D0=B0?= =?utf8?q?=20=D0=B4=D0=B5=D0=BD=D1=8C=20=D0=BD=D0=B5=20=D0=B7=D0=B0=D0=B4?= =?utf8?q?=D0=B0=D0=BD,=20=D1=82=D0=BE=20=D0=B4=D0=B5=D0=BD=D1=8C=20=D1=81?= =?utf8?q?=D1=87=D0=B8=D1=82=D0=B0=D0=B5=D1=82=D1=81=D1=8F=20=D1=80=D0=B0?= =?utf8?q?=D0=B1=D0=BE=D1=87=D0=B8=D0=BC?= MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit --- erp24/controllers/ProductionCalendarController.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/erp24/controllers/ProductionCalendarController.php b/erp24/controllers/ProductionCalendarController.php index 9ec3a123..4ae56d0f 100644 --- a/erp24/controllers/ProductionCalendarController.php +++ b/erp24/controllers/ProductionCalendarController.php @@ -80,7 +80,7 @@ class ProductionCalendarController extends Controller $date2 = date($viewYear . '-' . $monthIndex . '-t', strtotime($date1)); $cnt = 0; while ($date1 <= $date2) { - $cnt += $workDaysMap[$date1]; + $cnt += $workDaysMap[$date1] ?? 1; $date1 = date('Y-m-d', strtotime('+1 day', strtotime($date1))); } $workDaysInMonthCountMap[$monthIndex] = $cnt; -- 2.39.5