Fix ghost user warnings

This commit is contained in:
Miraty 2022-05-03 16:21:54 +02:00
parent 9338b81dc7
commit 7f2c5efa0e

View file

@ -7,11 +7,13 @@ Afin d'activer DNSSEC, vous devez indiquer un enregistrement DS à la zone paren
<option value="" disabled="" selected="">---</option>
<?php
$zones = nsListUserZones($_SESSION['username']);
if (isset($_SESSION['username'])) {
$zones = nsListUserZones($_SESSION['username']);
if ($zones) {
foreach($zones as $zone) {
echo "<option value='" . $zone . "'>" . $zone . "</option>";
if ($zones) {
foreach($zones as $zone) {
echo "<option value='" . $zone . "'>" . $zone . "</option>";
}
}
}