diff options
author | Ermal <eri@pfsense.org> | 2014-02-21 13:45:43 +0000 |
---|---|---|
committer | Ermal <eri@pfsense.org> | 2014-02-21 13:45:43 +0000 |
commit | 11aa4666a1542188e9e6e18b8c4978527b76c4da (patch) | |
tree | b93e4215cd0cd94c111c74ebf889ebfddc6d475c /etc/inc | |
parent | e45a0b69e74847d136e4fd40b7d414905ab5c205 (diff) | |
download | pfsense-11aa4666a1542188e9e6e18b8c4978527b76c4da.zip pfsense-11aa4666a1542188e9e6e18b8c4978527b76c4da.tar.gz |
Ticket #2627. Just pass the array over no need to traverse it
Diffstat (limited to 'etc/inc')
-rw-r--r-- | etc/inc/interfaces.inc | 10 |
1 files changed, 4 insertions, 6 deletions
diff --git a/etc/inc/interfaces.inc b/etc/inc/interfaces.inc index abafa2b..6c331ae 100644 --- a/etc/inc/interfaces.inc +++ b/etc/inc/interfaces.inc @@ -1299,12 +1299,10 @@ function interface_bring_down($interface = "wan", $destroy = false, $ifacecfg = } if (!empty($track6) && is_array($track6)) { - foreach ($track6 as $trackif) { - if (!function_exists('services_dhcp_configure')) - require_once('services.inc'); - /* Bring down radvd and dhcp6 on these interfaces */ - services_dhcpd_configure('inet6', $track6); - } + if (!function_exists('services_dhcp_configure')) + require_once('services.inc'); + /* Bring down radvd and dhcp6 on these interfaces */ + services_dhcpd_configure('inet6', $track6); } if (file_exists("{$g['tmp_path']}/{$realif}_router")) |