Advertisement
animdenis

active sections

Oct 16th, 2019
147
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 0.21 KB | None | 0 0
  1. \Bitrix\Main\Loader::includeModule('iblock');
  2. $dbSec = CIblockSection::GetList([],['IBLOCK_ID' => 6]);
  3. $bs = new CIBlockSection;
  4. while($ob = $dbSec->GetNext()){
  5.   $bs->Update($ob['ID'], ['ACTIVE' => 'Y']);
  6. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement