Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- \Bitrix\Main\Loader::includeModule('iblock');
- $dbSec = CIBlockElement::GetList([],['IBLOCK_ID' => 6]);
- $bs = new CIBlockElement;
- $cnt = 0;
- while($ob = $dbSec->GetNext()){
- $bs->Update($ob['ID'], ['ACTIVE' => 'Y']);
- $cnt++;
- }
- echo $cnt;
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement