summaryrefslogtreecommitdiffstats
path: root/usr/local/www/widgets
diff options
context:
space:
mode:
authorPhil Davis <phil.davis@inf.org>2014-12-20 23:50:35 +0545
committerPhil Davis <phil.davis@inf.org>2014-12-20 23:50:35 +0545
commit7a0c88f82773c77580999c04ba6224e7ba18b0de (patch)
tree34bbd64e5779f34359f5d2dfd58ffeed5ea3fc0d /usr/local/www/widgets
parent6e795218c4807a0f865446eb8f0d6c01f0ba91ea (diff)
downloadpfsense-7a0c88f82773c77580999c04ba6224e7ba18b0de.zip
pfsense-7a0c88f82773c77580999c04ba6224e7ba18b0de.tar.gz
Interfaces widget remove blank line if no IPv4 address
If the interface had an IPv6 address but no IPv4 address, there was a blank line where the IPv4 address would have been. There is no need for that, and one day IPv4 will be old legacy and systems will routinely have no IPv4 addresses at all - they will all be IPv6. Might as well make that look ordinary on the display now. The br goes in the div so we can put it in and out from the AJAX also.
Diffstat (limited to 'usr/local/www/widgets')
-rw-r--r--usr/local/www/widgets/widgets/interfaces.widget.php3
1 files changed, 1 insertions, 2 deletions
diff --git a/usr/local/www/widgets/widgets/interfaces.widget.php b/usr/local/www/widgets/widgets/interfaces.widget.php
index 99d52d9..8dbcad0 100644
--- a/usr/local/www/widgets/widgets/interfaces.widget.php
+++ b/usr/local/www/widgets/widgets/interfaces.widget.php
@@ -112,8 +112,7 @@ foreach ($ifdescrs as $ifdescr => $ifname):
</tr>
<tr>
<td class="listr">
- <div id="<?php echo $ifname;?>-ip" style="display:inline"><strong><?=htmlspecialchars($ifinfo['ipaddr']);?> </strong></div>
- <br />
+ <div id="<?php echo $ifname;?>-ip" style="display:inline"><strong><?=htmlspecialchars($ifinfo['ipaddr']);?> </strong><?php if ($ifinfo['ipaddr']) echo "<br />";?></div>
<div id="<?php echo $ifname;?>-ipv6" style="display:inline"><strong><?=htmlspecialchars($ifinfo['ipaddrv6']);?> </strong></div>
</td>
</tr>
OpenPOWER on IntegriCloud