Commit e440a6cf authored by Ad Schellevis's avatar Ad Schellevis Committed by Franco Fichtner

(dhcp) isset vs !empty

(cherry picked from commit 17479244)
parent 19ae1954
......@@ -676,7 +676,7 @@ include("head.inc");
/* active tabs */
$tab_array = array();
foreach ($config['interfaces'] as $if_id => $intf) {
if (!empty($intf['enable']) && is_ipaddrv4($intf['ipaddr'])) {
if (isset($intf['enable']) && is_ipaddrv4($intf['ipaddr'])) {
$ifname = !empty($intf['descr']) ? htmlspecialchars($intf['descr']) : strtoupper($if_id);
if ($if_id == $if) {
$tab_array[] = array($ifname, true, "services_dhcp.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