Fix ghost user warning somewhere else
This commit is contained in:
parent
a8af13b781
commit
e60f9c9292
1 changed files with 6 additions and 4 deletions
|
@ -46,12 +46,14 @@ if (isset($_POST['domain']) AND isset($_SESSION['username'])) {
|
|||
<label for="zone">Zone</label>
|
||||
<select required="" name="zone" id="zone">
|
||||
<option value="" disabled="" selected="">-</option><?php
|
||||
if (isset($_SESSION['username'])) {
|
||||
$zones = nsListUserZones($_SESSION['username']);
|
||||
|
||||
if (!empty($zones)) {
|
||||
foreach ($zones as $zone)
|
||||
echo "<option value='" . $zone . "'>" . $zone . "</option>";
|
||||
}
|
||||
}
|
||||
?>
|
||||
</select>
|
||||
<br>
|
||||
|
|
Loading…
Reference in a new issue