Skip to content
This repository was archived by the owner on Aug 2, 2020. It is now read-only.

Commit fd5336a

Browse files
committed
Fix potentially undefined variable
1 parent b81f882 commit fd5336a

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

pages/main/index.php

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -180,7 +180,6 @@
180180
<?php
181181
if (isset($_GET['medit'])) {
182182
$edit = $afiles->get($_GET['medit']);
183-
}
184183
?>
185184
<div class="modal" id="edit-modal">
186185
<form action="<?php echo (isset($_GET['medit'])?'?route=/files/&edit='.$_GET['medit']:null).(isset($_GET['dir'])?'&dir='.$_GET['dir']:null); ?>" method="POST" enctype="multipart/form-data">
@@ -203,6 +202,9 @@
203202
</div>
204203
</form>
205204
</div>
205+
<?php
206+
}
207+
?>
206208
<div class="modal" id="new-modal">
207209
<form action="<?php echo (isset($_GET['dir'])?'?route=/files/&dir='.$_GET['dir']:null); ?>" method="POST" enctype="multipart/form-data">
208210
<div class="modal-content">

0 commit comments

Comments
 (0)