Commit 53eefd49 authored by Ad Schellevis's avatar Ad Schellevis

(dhcpv6) isset vs !empty

parent 17479244
...@@ -444,7 +444,7 @@ include("head.inc"); ...@@ -444,7 +444,7 @@ include("head.inc");
/* active tabs */ /* active tabs */
$tab_array_main = array(); $tab_array_main = array();
foreach ($config['interfaces'] as $if_id => $intf) { foreach ($config['interfaces'] as $if_id => $intf) {
if (!empty($intf['enable']) && isset($intf['ipaddrv6']) && is_ipaddrv6($intf['ipaddrv6'])) { if (isset($intf['enable']) && isset($intf['ipaddrv6']) && is_ipaddrv6($intf['ipaddrv6'])) {
$ifname = !empty($intf['descr']) ? htmlspecialchars($intf['descr']) : strtoupper($if_id); $ifname = !empty($intf['descr']) ? htmlspecialchars($intf['descr']) : strtoupper($if_id);
if ($if_id == $if) { if ($if_id == $if) {
$tab_array_main[] = array($ifname, true, "services_dhcpv6.php?if={$if_id}"); $tab_array_main[] = array($ifname, true, "services_dhcpv6.php?if={$if_id}");
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment