index.cgi: Fix showing DNS servers.
authorMichael Tremer <michael.tremer@ipfire.org>
Fri, 14 Feb 2014 12:49:37 +0000 (13:49 +0100)
committerMichael Tremer <michael.tremer@ipfire.org>
Fri, 14 Feb 2014 12:49:37 +0000 (13:49 +0100)
html/cgi-bin/index.cgi

index 3b44baad3453540984d61810f5a6afcac80aacd8..a497607f174d0fad9352afc8bd7b731a5127d77e 100644 (file)
@@ -201,21 +201,20 @@ END
        chomp($DNS2);
        close DNS2;
 
-       if ( $DNS1 ) { print <<END;
-       <tr><td><b>$Lang::tr{'dns server'}1:</b></td><td align='center'>$DNS1</td><td></td></tr>
-END
-       }
-       if ( $DNS2 ) { print <<END;
-       <tr><td><b>$Lang::tr{'dns server'}2:</b></td><td align='center'>$DNS2</td><td></td></tr>
-       </table>
-END
-       } else { print <<END;
-       <td></td>
-       </tr>
+       print <<END;
+               <tr>
+                       <td>
+                               <b>$Lang::tr{'dns server'}</b>
+                       </td>
+                       <td align="center">
+                               $DNS1
+                       </td>
+                       <td align="center">
+                               $DNS2
+                       </td>
+               </tr>
        </table>
-
 END
-       }
 
 #Dial profiles
 if ( $netsettings{'RED_TYPE'} ne "STATIC" && $netsettings{'RED_TYPE'} ne "DHCP" ){