mirror of
https://github.com/itflow-org/itflow
synced 2026-03-23 05:55:38 +00:00
Fix networks page not displaying dns if secondary dns server was not entered
This commit is contained in:
@@ -146,7 +146,7 @@ $num_rows = mysqli_fetch_row(mysqli_query($mysqli, "SELECT FOUND_ROWS()"));
|
|||||||
$network_gateway = nullable_htmlentities($row['network_gateway']);
|
$network_gateway = nullable_htmlentities($row['network_gateway']);
|
||||||
$network_primary_dns = nullable_htmlentities($row['network_primary_dns']);
|
$network_primary_dns = nullable_htmlentities($row['network_primary_dns']);
|
||||||
$network_secondary_dns = nullable_htmlentities($row['network_secondary_dns']);
|
$network_secondary_dns = nullable_htmlentities($row['network_secondary_dns']);
|
||||||
if ($network_primary_dns && $network_secondary_dns) {
|
if ($network_primary_dns) {
|
||||||
$network_dns_display = "$network_primary_dns<div class='text-secondary mt-1'>$network_secondary_dns</div>";
|
$network_dns_display = "$network_primary_dns<div class='text-secondary mt-1'>$network_secondary_dns</div>";
|
||||||
} else {
|
} else {
|
||||||
$network_dns_display = "-";
|
$network_dns_display = "-";
|
||||||
|
|||||||
Reference in New Issue
Block a user