From 18ae52f61030455a009d4cb5545f8f5acbd900b8 Mon Sep 17 00:00:00 2001 From: Alexander Smirnov Date: Fri, 17 May 2024 12:43:06 +0300 Subject: [PATCH] fix --- erp24/modul/shipment/functionsShipment.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/erp24/modul/shipment/functionsShipment.php b/erp24/modul/shipment/functionsShipment.php index f2157ff..81e780c 100644 --- a/erp24/modul/shipment/functionsShipment.php +++ b/erp24/modul/shipment/functionsShipment.php @@ -196,7 +196,7 @@ foreach($data as $row) $products_class[$row["category_id"]]=$row["tip"]; //разбиваем продукты по группам - у каждой группы будет свой запрос $productGroupArray=[]; -foreach($products as $pid => $pName) { +foreach($products ?? [] as $pid => $pName) { //узнаем категорибю товара $categoryId=$ProductsOptions[$pid]["parent_id"]; -- 2.39.5