From 7d4515cab0fe3731dbf2333ddb9a483fc0cb2c22 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ermal=20Lu=C3=A7i?= Date: Sat, 21 Jun 2008 14:52:03 +0000 Subject: Continue interface improvements --- usr/local/www/diag_backup.php | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) (limited to 'usr') diff --git a/usr/local/www/diag_backup.php b/usr/local/www/diag_backup.php index 5dde859..cf89350 100755 --- a/usr/local/www/diag_backup.php +++ b/usr/local/www/diag_backup.php @@ -172,10 +172,7 @@ if ($_POST) { $config['interfaces']['wan']['gateway'] = $config['system']['gateway']; unset($config['shaper']); /* optional if list */ - $ifdescrs = get_configured_interface_list(true); - /* build an interface collection */ - for ($j = 1; isset ($config['interfaces']['opt' . $j]); $j++) - $ifdescrs['opt' . $j] = "opt" . $j; + $ifdescrs = get_configured_interface_list(true, true); /* remove special characters from interface descriptions */ if(is_array($ifdescrs)) foreach($ifdescrs as $iface) -- cgit v1.1