Removed possibility to subordinate a file to itself or one of it's subordinates.
This commit is contained in:
parent
e3254eaaf7
commit
b340c7efff
|
@ -133,6 +133,7 @@ echo '
|
||||||
<select name="higher" id="higher">
|
<select name="higher" id="higher">
|
||||||
<option value="0"></option>';
|
<option value="0"></option>';
|
||||||
foreach ($pages as $page) {
|
foreach ($pages as $page) {
|
||||||
|
if (isset($id) && $page['id'] == $id or $page['higher'] == $id) continue;
|
||||||
echo '<option value="' . $page['id'] . '"';
|
echo '<option value="' . $page['id'] . '"';
|
||||||
if (isset($higher) and $page['id'] == $higher) echo " selected";
|
if (isset($higher) and $page['id'] == $higher) echo " selected";
|
||||||
echo '>' . $page['title'] . '</option>';
|
echo '>' . $page['title'] . '</option>';
|
||||||
|
|
Reference in New Issue
Block a user