mirror of
https://github.com/Znote/ZnoteAAC.git
synced 2025-04-30 03:09:22 +02:00
Slightly better syntax of previous commit.
This commit is contained in:
parent
a29f3e93f5
commit
a23b38090d
@ -136,15 +136,19 @@ if (isset($_GET['success']) && empty($_GET['success'])) {
|
|||||||
<!-- Available towns to select from when creating character -->
|
<!-- Available towns to select from when creating character -->
|
||||||
Town:<br>
|
Town:<br>
|
||||||
<select name="selected_town">
|
<select name="selected_town">
|
||||||
<?php foreach ($config['available_towns'] as $tid) { ?>
|
<?php
|
||||||
|
foreach ($available_towns as $tid):
|
||||||
|
?>
|
||||||
<option value="<?php echo $tid; ?>"><?php echo town_id_to_name($tid); ?></option>
|
<option value="<?php echo $tid; ?>"><?php echo town_id_to_name($tid); ?></option>
|
||||||
<?php } ?>
|
<?php
|
||||||
|
endforeach;
|
||||||
|
?>
|
||||||
</select>
|
</select>
|
||||||
</li>
|
</li>
|
||||||
<?php
|
<?php
|
||||||
else:
|
else:
|
||||||
?>
|
?>
|
||||||
<input type="hidden" name="selected_town" value="<?php echo end($config['available_towns']); ?>">
|
<input type="hidden" name="selected_town" value="<?php echo end($available_towns); ?>">
|
||||||
<?php
|
<?php
|
||||||
endif;
|
endif;
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user