if ($metka > 0) { $arMetki[] = $metka; } } if (!is_array($arMetki) || count($arMetki) < 1) { $strError .= GetMessage("IBLOCK_ADM_IMP_NO_METKI") . "<br>"; } if (strlen($strError) <= 0) { $csvFile->SetWidthMap($arMetki); } } } if (strlen($strError) <= 0) { $bFirstHeaderTmp = $csvFile->GetFirstHeader(); $csvFile->SetFirstHeader(false); if ($arRes = $csvFile->Fetch()) { foreach ($arRes as $i => $ar) { $arDataFileFields[$i] = $ar; } } else { $strError .= GetMessage("IBLOCK_ADM_IMP_NO_DATA") . "<br>"; } $NUM_FIELDS = count($arDataFileFields); } } if (strlen($strError) > 0) { $STEP = 2; } //*****************************************************************// } if ($STEP > 3) {