summaryrefslogtreecommitdiffstats
path: root/src/usr/local/www/status_interfaces.php
diff options
context:
space:
mode:
authorjim-p <jimp@pfsense.org>2016-04-05 10:21:20 -0400
committerjim-p <jimp@pfsense.org>2016-04-05 10:22:01 -0400
commitb226a437b3a81f2d6a4e07b3c38017cc62a99b5f (patch)
treeee1567c445994dd89b12510b1e1a3dacdba4dabf /src/usr/local/www/status_interfaces.php
parent11614bc904eb8a3588b09404ff615b2f8cd0c16a (diff)
downloadpfsense-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.php4
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") {
OpenPOWER on IntegriCloud