diff options
author | jim-p <jimp@pfsense.org> | 2016-04-05 10:21:20 -0400 |
---|---|---|
committer | jim-p <jimp@pfsense.org> | 2016-04-05 10:21:20 -0400 |
commit | 6bdfbf3b06c9e3c1439f806d372c8bf440460ee1 (patch) | |
tree | 1d0cf1eeb6f0326215c9d457ad66136dee0f35a1 /src/usr/local | |
parent | 5ebb5db198982117a173a03fb6261180bcbfd0a9 (diff) | |
download | pfsense-6bdfbf3b06c9e3c1439f806d372c8bf440460ee1.zip pfsense-6bdfbf3b06c9e3c1439f806d372c8bf440460ee1.tar.gz |
Correct logic for display of MAC address & vendor (if present). Fixes #6078
Diffstat (limited to 'src/usr/local')
-rw-r--r-- | src/usr/local/www/status_interfaces.php | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/usr/local/www/status_interfaces.php b/src/usr/local/www/status_interfaces.php index 4afb95d..5e3cd8b 100644 --- a/src/usr/local/www/status_interfaces.php +++ b/src/usr/local/www/status_interfaces.php @@ -144,8 +144,8 @@ foreach ($ifdescrs as $ifdescr => $ifname): if ($ifinfo['macaddr']) { $mac=$ifinfo['macaddr']; $mac_hi = strtoupper($mac[0] . $mac[1] . $mac[3] . $mac[4] . $mac[6] . $mac[7]); - showDef(isset($mac_man[$mac_hi]), gettext('MAC Address'), $mac . ' - ' . $mac_man[$mac_hi]); - } + showDef( $ifinfo['macaddr'], gettext('MAC Address'), $mac . (isset($mac_man[$mac_hi]) ? ' - ' . $mac_man[$mac_hi] : '')); + } if ($ifinfo['status'] != "down") { if ($ifinfo['dhcplink'] != "down" && $ifinfo['pppoelink'] != "down" && $ifinfo['pptplink'] != "down") { |