$arNavParamsFirst = $arNavParams;
if (empty($arNavParamsFirst['nTopCount'])){
$arNavParamsFirst['nTopCount'] = 10;
}
$arExc = CIBlockElement::GetList($arSort, array_merge($arFilter, $arrFilter), false, $arNavParamsFirst , $arSelect);
$arFilterID = array();
while($obElement = $arExc->GetNextElement())
{
$arItem = $obElement->GetFields();
$arFilterID[] = $arItem["ID"];
}
$arFilter['!ID'] = $arFilterID;
print_r(array_merge($arFilter, $arrFilter));
$rsElement = CIBlockElement::GetList($arSort, array_merge($arFilter, $arrFilter), false, $arNavParams, $arSelect); |