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:22:01 -0400 |
commit | b226a437b3a81f2d6a4e07b3c38017cc62a99b5f (patch) | |
tree | ee1567c445994dd89b12510b1e1a3dacdba4dabf /src/usr/local/www/status_interfaces.php | |
parent | 11614bc904eb8a3588b09404ff615b2f8cd0c16a (diff) | |
download | pfsense-b226a437b3a81f2d6a4e07b3c38017cc62a99b5f.zip pfsense-b226a437b3a81f2d6a4e07b3c38017cc62a99b5f.tar.gz |
Correct logic for display of MAC address & vendor (if present). Fixes #6078
Diffstat (limited to 'src/usr/local/www/status_interfaces.php')
-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") { |