Commit 17479244 authored by Ad Schellevis's avatar Ad Schellevis

(dhcp) isset vs !empty

parent 088ca266
......@@ -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