Removed possibility to subordinate a file to itself or one of it's subordinates.

This commit is contained in:
Joshua Ramon Enslin 2018-06-19 21:19:14 +02:00 committed by Stefan Rohde-Enslin
parent e3254eaaf7
commit b340c7efff

View File

@ -133,6 +133,7 @@ echo '
<select name="higher" id="higher">
<option value="0"></option>';
foreach ($pages as $page) {
if (isset($id) && $page['id'] == $id or $page['higher'] == $id) continue;
echo '<option value="' . $page['id'] . '"';
if (isset($higher) and $page['id'] == $higher) echo " selected";
echo '>' . $page['title'] . '</option>';