|
@@ 1153-1160 (lines=8) @@
|
| 1150 |
|
$lastKey = 0; |
| 1151 |
|
$nextActive = 0; |
| 1152 |
|
foreach ($prevnextsection_menu as $k_b => $v_b) { |
| 1153 |
|
if ($nextActive) { |
| 1154 |
|
$sectionRec_temp = $this->removeInaccessiblePages($this->sys_page->getMenu($v_b['uid'], '*', $sortingField, $additionalWhere)); |
| 1155 |
|
if (!empty($sectionRec_temp)) { |
| 1156 |
|
$recArr['nextsection'] = reset($sectionRec_temp); |
| 1157 |
|
$recArr['nextsection_last'] = end($sectionRec_temp); |
| 1158 |
|
$nextActive = 0; |
| 1159 |
|
} |
| 1160 |
|
} |
| 1161 |
|
if ($v_b['uid'] == $value_rec['pid']) { |
| 1162 |
|
if ($lastKey) { |
| 1163 |
|
$sectionRec_temp = $this->removeInaccessiblePages($this->sys_page->getMenu($prevnextsection_menu[$lastKey]['uid'], '*', $sortingField, $additionalWhere)); |
|
@@ 1162-1168 (lines=7) @@
|
| 1159 |
|
} |
| 1160 |
|
} |
| 1161 |
|
if ($v_b['uid'] == $value_rec['pid']) { |
| 1162 |
|
if ($lastKey) { |
| 1163 |
|
$sectionRec_temp = $this->removeInaccessiblePages($this->sys_page->getMenu($prevnextsection_menu[$lastKey]['uid'], '*', $sortingField, $additionalWhere)); |
| 1164 |
|
if (!empty($sectionRec_temp)) { |
| 1165 |
|
$recArr['prevsection'] = reset($sectionRec_temp); |
| 1166 |
|
$recArr['prevsection_last'] = end($sectionRec_temp); |
| 1167 |
|
} |
| 1168 |
|
} |
| 1169 |
|
$nextActive = 1; |
| 1170 |
|
} |
| 1171 |
|
$lastKey = $k_b; |