diff options
author | Phil Davis <phil.davis@inf.org> | 2017-04-20 23:45:09 +0545 |
---|---|---|
committer | Phil Davis <phil.davis@inf.org> | 2017-04-20 23:45:09 +0545 |
commit | a8bee7cc68362fda875aaa6d50c64c5867175f21 (patch) | |
tree | eca2a01b51946272455ec98c7f25190e1160875c /src/etc/inc | |
parent | b453873967f34bde6c8973f73189b6ee5492e6ca (diff) | |
download | pfsense-a8bee7cc68362fda875aaa6d50c64c5867175f21.zip pfsense-a8bee7cc68362fda875aaa6d50c64c5867175f21.tar.gz |
Simplify indexing of gateways array
Diffstat (limited to 'src/etc/inc')
-rw-r--r-- | src/etc/inc/gwlb.inc | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/src/etc/inc/gwlb.inc b/src/etc/inc/gwlb.inc index 94794bd..f11f681 100644 --- a/src/etc/inc/gwlb.inc +++ b/src/etc/inc/gwlb.inc @@ -871,11 +871,7 @@ function return_gateways_array($disabled = false, $localhost = false, $inactive } if ($integer_index) { - $gateways_arr_temp = array(); - foreach ($gateways_arr as $gw) { - $gateways_arr_temp[] = $gw; - } - $gateways_arr = $gateways_arr_temp; + $gateways_arr = array_values($gateways_arr); } return($gateways_arr); |