diff --git a/src/www/status_interfaces.php b/src/www/status_interfaces.php
index 6785813d2..6549ffeeb 100644
--- a/src/www/status_interfaces.php
+++ b/src/www/status_interfaces.php
@@ -254,7 +254,7 @@ include("head.inc");
if (!empty($ifinfo['gateway'])): ?>
| = gettext('IPv4 gateway') ?> |
- = htmlspecialchars($config['interfaces'][$ifdescr]['gateway'] ?? gettext('auto-detected')) ?>: = $ifinfo['gateway'] ?> |
+ = htmlspecialchars(!empty($config['interfaces'][$ifdescr]['gateway']) ? $config['interfaces'][$ifdescr]['gateway'] : gettext('auto-detected')) ?>: = $ifinfo['gateway'] ?> |
+ if (!empty($ifinfo['ipaddrv6'][0]) && !$ifinfo['ipaddrv6'][0]['link-local']): ?>
| = gettext("IPv6 address") ?> |
@@ -289,7 +289,7 @@ include("head.inc");
|
| = gettext('IPv6 gateway') ?> |
- = htmlspecialchars($config['interfaces'][$ifdescr]['gatewayv6'] ?? gettext('auto-detected')) ?>: = $ifinfo['gatewayv6'] ?> |
+ = htmlspecialchars(!empty($config['interfaces'][$ifdescr]['gatewayv6']) ? $config['interfaces'][$ifdescr]['gatewayv6'] : gettext('auto-detected')) ?>: = $ifinfo['gatewayv6'] ?> |