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