From ad62edb7f66f5ff7c3d3dee29827aad7e4a03295 Mon Sep 17 00:00:00 2001 From: johnnyq Date: Wed, 27 Nov 2024 12:42:09 -0500 Subject: [PATCH] Fix networks page not displaying dns if secondary dns server was not entered --- client_networks.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/client_networks.php b/client_networks.php index 0462de6e..1257160b 100644 --- a/client_networks.php +++ b/client_networks.php @@ -146,7 +146,7 @@ $num_rows = mysqli_fetch_row(mysqli_query($mysqli, "SELECT FOUND_ROWS()")); $network_gateway = nullable_htmlentities($row['network_gateway']); $network_primary_dns = nullable_htmlentities($row['network_primary_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
$network_secondary_dns
"; } else { $network_dns_display = "-";