$result = $obExport->ExportElements( $_SESSION["FX_CML2_EXPORT"]["PROPERTY_MAP"], $_SESSION["FX_CML2_EXPORT"]["SECTION_MAP"], $start_time, $INTERVAL, 0, $NS["ELEMENTS_FILTER"] ); if($result) { $NS["ELEMENTS"] += $result; } else { $obExport->EndExportCatalog(); $obExport->ExportProductSets(); $obExport->EndExport(); $NS["STEP"]++; } } else $NS["STEP"]++; $NS["next_step"] = $obExport->next_step; } else { $arErrors[] = GetMessage("IBLOCK_CML2_IBLOCK_ERROR"); } } else {