From: Alexander Smirnov Date: Fri, 17 May 2024 09:43:06 +0000 (+0300) Subject: fix X-Git-Url: https://gitweb.erp-flowers.ru/?a=commitdiff_plain;h=18ae52f61030455a009d4cb5545f8f5acbd900b8;p=yii-erp24%2F.git fix --- 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"];