fix ICML Loading - check if is an array
This commit is contained in:
parent
98ad65413c
commit
5c1917a8e8
@ -26,14 +26,18 @@ foreach ($iblockProperties as $prop) {
|
|||||||
|
|
||||||
$skuUnitProps = ('IBLOCK_PROPERTY_UNIT_SKU' . "_" . $prop);
|
$skuUnitProps = ('IBLOCK_PROPERTY_UNIT_SKU' . "_" . $prop);
|
||||||
$skuUnitProps = $$skuUnitProps;
|
$skuUnitProps = $$skuUnitProps;
|
||||||
foreach ($skuUnitProps as $iblock => $val) {
|
if (is_array($skuUnitProps)) {
|
||||||
$IBLOCK_PROPERTY_UNIT_SKU[$iblock][$prop] = $val;
|
foreach ($skuUnitProps as $iblock => $val) {
|
||||||
|
$IBLOCK_PROPERTY_UNIT_SKU[$iblock][$prop] = $val;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
$skuProps = ('IBLOCK_PROPERTY_SKU' . "_" . $prop);
|
$skuProps = ('IBLOCK_PROPERTY_SKU' . "_" . $prop);
|
||||||
$skuProps = $$skuProps;
|
$skuProps = $$skuProps;
|
||||||
foreach ($skuProps as $iblock => $val) {
|
if (is_array($skuProps)) {
|
||||||
$IBLOCK_PROPERTY_SKU[$iblock][$prop] = $val;
|
foreach ($skuProps as $iblock => $val) {
|
||||||
|
$IBLOCK_PROPERTY_SKU[$iblock][$prop] = $val;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
$IBLOCK_PROPERTY_PRODUCT = array();
|
$IBLOCK_PROPERTY_PRODUCT = array();
|
||||||
@ -42,14 +46,18 @@ foreach ($iblockProperties as $prop) {
|
|||||||
|
|
||||||
$productUnitProps = "IBLOCK_PROPERTY_UNIT_PRODUCT" . "_" . $prop;
|
$productUnitProps = "IBLOCK_PROPERTY_UNIT_PRODUCT" . "_" . $prop;
|
||||||
$productUnitProps = $$productUnitProps;
|
$productUnitProps = $$productUnitProps;
|
||||||
foreach ($productUnitProps as $iblock => $val) {
|
if (is_array($productUnitProps)) {
|
||||||
$IBLOCK_PROPERTY_UNIT_PRODUCT[$iblock][$prop] = $val;
|
foreach ($productUnitProps as $iblock => $val) {
|
||||||
|
$IBLOCK_PROPERTY_UNIT_PRODUCT[$iblock][$prop] = $val;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
$productProps = "IBLOCK_PROPERTY_PRODUCT" . "_" . $prop;
|
$productProps = "IBLOCK_PROPERTY_PRODUCT" . "_" . $prop;
|
||||||
$productProps = $$productProps;
|
$productProps = $$productProps;
|
||||||
foreach ($productProps as $iblock => $val) {
|
if (is_array($productProps)) {
|
||||||
$IBLOCK_PROPERTY_PRODUCT[$iblock][$prop] = $val;
|
foreach ($productProps as $iblock => $val) {
|
||||||
|
$IBLOCK_PROPERTY_PRODUCT[$iblock][$prop] = $val;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user