$rsIblock = CIBlock::GetList(
Array(),
Array(
'TYPE' => $IBType,
'ACTIVE' => 'Y',
), true
);
$ib = new CIBlock;
$arFields = Array(
"SITE_ID" => Array("s1", "s2"),
);
while($arIblock = $rsIblock->Fetch()){
$res = $ib->Update($arIblock["ID"], $arFields);
} |