summaryrefslogtreecommitdiffstats
path: root/src/usr/local/www
diff options
context:
space:
mode:
authorStephen Beaver <sbeaver@netgate.com>2016-01-13 09:59:42 -0500
committerStephen Beaver <sbeaver@netgate.com>2016-01-13 10:00:18 -0500
commit51f6cd2abf9a01cdf1e38feb8a716e1c215cecfa (patch)
treecac4731bedf21b1dda8cf5fb13f3977c8e375acb /src/usr/local/www
parent0538cfa2173fa1d3092763bc5f952b91857174e4 (diff)
downloadpfsense-51f6cd2abf9a01cdf1e38feb8a716e1c215cecfa.zip
pfsense-51f6cd2abf9a01cdf1e38feb8a716e1c215cecfa.tar.gz
Newline is added only if both IPv4 and IPv6 addresses present
Diffstat (limited to 'src/usr/local/www')
-rw-r--r--src/usr/local/www/widgets/widgets/interfaces.widget.php7
1 files changed, 6 insertions, 1 deletions
diff --git a/src/usr/local/www/widgets/widgets/interfaces.widget.php b/src/usr/local/www/widgets/widgets/interfaces.widget.php
index 4cc1de0..e200507 100644
--- a/src/usr/local/www/widgets/widgets/interfaces.widget.php
+++ b/src/usr/local/www/widgets/widgets/interfaces.widget.php
@@ -118,7 +118,12 @@ foreach ($ifdescrs as $ifdescr => $ifname):
<?php if (empty($ifinfo['ipaddr']) && empty($ifinfo['ipaddrv6'])): ?>
n/a
<?php else: ?>
- <?=htmlspecialchars($ifinfo['ipaddr'])?><br />
+ <?=htmlspecialchars($ifinfo['ipaddr'])?>
+<?php
+ if (($ifinfo['ipaddr'] != "") && ($ifinfo['ipaddrv6'] != "")) {
+ print('<br />');
+ }
+?>
<?=htmlspecialchars($ifinfo['ipaddrv6'])?>
<?php endif; ?>
</td>
OpenPOWER on IntegriCloud