$arFilter["=NAME"] = $arLoadProductArray["NAME"]; } else { $strErrorR .= GetMessage("IBLOCK_ADM_IMP_LINE_NO") . " " . $line_num . ". " . GetMessage("IBLOCK_ADM_IMP_NOIDNAME") . "<br>"; } if (strlen($strErrorR) <= 0) { $arLoadProductArray["PROPERTY_VALUES"] = array(); foreach ($arRes as $key => $value) { if (strncmp($key, "IP_PROP", 7) == 0) { $cur_prop_id = (int) substr($key, 7); if (!array_key_exists($cur_prop_id, $arIBlockProperty)) { $res1 = CIBlockProperty::GetByID($cur_prop_id, $IBLOCK_ID); $arIBlockProperty[$cur_prop_id] = $res1->Fetch(); } if (is_array($arIBlockProperty[$cur_prop_id])) { if ($arIBlockProperty[$cur_prop_id]["PROPERTY_TYPE"] == "L") { $value = $csvFile->MapEnum($cur_prop_id, $value); } elseif ($arIBlockProperty[$cur_prop_id]["PROPERTY_TYPE"] == "N") { $value = str_replace(",", ".", $value); } elseif ($arIBlockProperty[$cur_prop_id]["PROPERTY_TYPE"] == "F") { $value = $csvFile->MapFiles($value); $arIBlockFileProperty[$cur_prop_id] = $cur_prop_id; } $arLoadProductArray["PROPERTY_VALUES"][$cur_prop_id] = $value; } } } } if (strlen($strErrorR) <= 0) { if (array_key_exists("PREVIEW_PICTURE", $arLoadProductArray)) { if (strlen($arLoadProductArray["PREVIEW_PICTURE"]) > 0) { if (preg_match("/^(http|https):\\/\\//", $arLoadProductArray["PREVIEW_PICTURE"])) {