Add isset check before calling folder_id from GET params

This commit is contained in:
Marcus Hill
2023-01-26 12:15:35 +00:00
parent 5edd37a46e
commit 5d9930ad28
2 changed files with 10 additions and 10 deletions

View File

@@ -33,7 +33,7 @@
$folder_name = htmlentities($row['folder_name']);
?>
<option <?php if ($_GET['folder_id'] == $folder_id) echo "selected"; ?> value="<?php echo $folder_id ?>"><?php echo $folder_name; ?></option>
<option <?php if (isset($_GET['folder_id']) && $_GET['folder_id'] == $folder_id) echo "selected"; ?> value="<?php echo $folder_id ?>"><?php echo $folder_name; ?></option>
<?php
}
?>