resolved #2 implemented automatic album selection

This commit is contained in:
Max Nuding 2021-11-27 09:12:01 +01:00
parent 1247d3c969
commit f8e72356a3
Signed by: phlaym
GPG Key ID: A06651BAB6777237

View File

@ -123,7 +123,8 @@ if (!isset($_POST['submit'])) {
<select name="album" id="album">
<option value="">---</option>
<?php foreach ($albums as $album) {
echo '<option value="' . $album->uid . '">' . $album->title . '</option>\n';
$selected = $album->token === $token ? ' selected' : '';
echo '<option value="' . $album->uid . '"' . $selected . '>' . $album->title . '</option>\n';
} ?>
</select>
<!--<label></label>