From a8bee7cc68362fda875aaa6d50c64c5867175f21 Mon Sep 17 00:00:00 2001 From: Phil Davis Date: Thu, 20 Apr 2017 23:45:09 +0545 Subject: Simplify indexing of gateways array --- src/etc/inc/gwlb.inc | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) (limited to 'src') 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); -- cgit v1.1