Advertisement
Guest User

Untitled

a guest
Sep 17th, 2019
122
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.50 KB | None | 0 0
  1. $section_ref = array();
  2. $arResult['ROOT'] = array();
  3. $section_ref[0] = &$arResult['ROOT'];
  4. $rsSections = CIBlockSection::GetList($arOrder, $arFilter, false, $arSelect);//выборка разделов из бд в массив
  5. while($arSection = $rsSections->GetNext()) {
  6. $section_ref[intval($arSection['IBLOCK_SECTION_ID'])]['CHILD'][$arSection['ID']] = $arSection;
  7. $section_ref[$arSection['ID']] = &$section_ref[intval($arSection['IBLOCK_SECTION_ID'])]['CHILD'][$arSection['ID']];
  8. }
  9. unset($sectionLinc);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement