From 125b6fcd66a2eb42ae773f66811c89959c7a2b77 Mon Sep 17 00:00:00 2001 From: Michael Tremer Date: Fri, 14 Feb 2014 13:49:37 +0100 Subject: [PATCH] index.cgi: Fix showing DNS servers. --- html/cgi-bin/index.cgi | 25 ++++++++++++------------- 1 file changed, 12 insertions(+), 13 deletions(-) diff --git a/html/cgi-bin/index.cgi b/html/cgi-bin/index.cgi index 3b44baad34..a497607f17 100644 --- a/html/cgi-bin/index.cgi +++ b/html/cgi-bin/index.cgi @@ -201,21 +201,20 @@ END chomp($DNS2); close DNS2; - if ( $DNS1 ) { print <$Lang::tr{'dns server'}1:$DNS1 -END - } - if ( $DNS2 ) { print <$Lang::tr{'dns server'}2:$DNS2 - -END - } else { print < - + print < + + $Lang::tr{'dns server'} + + + $DNS1 + + + $DNS2 + + - END - } #Dial profiles if ( $netsettings{'RED_TYPE'} ne "STATIC" && $netsettings{'RED_TYPE'} ne "DHCP" ){ -- 2.39.5