diff options
author | Stephen Beaver <sbeaver@netgate.com> | 2016-01-13 09:59:42 -0500 |
---|---|---|
committer | Stephen Beaver <sbeaver@netgate.com> | 2016-01-13 10:00:18 -0500 |
commit | 51f6cd2abf9a01cdf1e38feb8a716e1c215cecfa (patch) | |
tree | cac4731bedf21b1dda8cf5fb13f3977c8e375acb | |
parent | 0538cfa2173fa1d3092763bc5f952b91857174e4 (diff) | |
download | pfsense-51f6cd2abf9a01cdf1e38feb8a716e1c215cecfa.zip pfsense-51f6cd2abf9a01cdf1e38feb8a716e1c215cecfa.tar.gz |
Newline is added only if both IPv4 and IPv6 addresses present
-rw-r--r-- | src/usr/local/www/widgets/widgets/interfaces.widget.php | 7 |
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> |