summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorCharlieMarshall <charlie0440@gmail.com>2014-08-28 10:45:31 +0100
committerCharlieMarshall <charlie0440@gmail.com>2014-08-28 12:38:24 +0100
commitdd57482238384fe436cafaac895f4c2cf99542e5 (patch)
tree232d1d8c64979c1c44019f9cff1583e61abc11e9
parentbd9c9cb109ecc1c36c9eb4a320fe50eb6942abe1 (diff)
downloadpfsense-dd57482238384fe436cafaac895f4c2cf99542e5.zip
pfsense-dd57482238384fe436cafaac895f4c2cf99542e5.tar.gz
Remove blank line if only an ipv6 address is in use
-rw-r--r--usr/local/www/widgets/widgets/interfaces.widget.php10
1 files changed, 7 insertions, 3 deletions
diff --git a/usr/local/www/widgets/widgets/interfaces.widget.php b/usr/local/www/widgets/widgets/interfaces.widget.php
index 12d315a..92a5ffb 100644
--- a/usr/local/www/widgets/widgets/interfaces.widget.php
+++ b/usr/local/www/widgets/widgets/interfaces.widget.php
@@ -89,9 +89,13 @@ require_once("/usr/local/www/widgets/include/interfaces.inc");
</tr>
<tr>
<td class="listr"><b>
- <div id="<?php echo $ifname;?>-ip" style="display:inline"><?=htmlspecialchars($ifinfo['ipaddr']);?> </div>
- <br />
- <div id="<?php echo $ifname;?>-ipv6" style="display:inline"><?=htmlspecialchars($ifinfo['ipaddrv6']);?> </div>
+ <?php if($ifinfo['ipaddr'] != "") { ?>
+ <div id="<?php echo $ifname;?>-ip" style="display:inline"><?=htmlspecialchars($ifinfo['ipaddr']);?> </div>
+ <br />
+ <?php }
+ if ($ifinfo['ipaddrv6'] != "") { ?>
+ <div id="<?php echo $ifname;?>-ipv6" style="display:inline"><?=htmlspecialchars($ifinfo['ipaddrv6']);?> </div>
+ <?php } ?>
</b></td>
</tr>
</tr>
OpenPOWER on IntegriCloud