From 275b29ebbcfe21262f76f443522078534eba88ef Mon Sep 17 00:00:00 2001 From: Scott Ullrich Date: Fri, 21 Nov 2008 21:17:57 +0000 Subject: [PATCH] Make $if a global --- usr/local/www/interfaces.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/usr/local/www/interfaces.php b/usr/local/www/interfaces.php index 2cd152ecd7..04d88cae24 100755 --- a/usr/local/www/interfaces.php +++ b/usr/local/www/interfaces.php @@ -498,7 +498,7 @@ if ($_POST) { } // end if($_POST) function handle_pppoe_reset() { - global $_POST, $config, $g, $wancfg; + global $_POST, $config, $g, $wancfg, $if; /* perform a periodic reset? */ if(!isset($_POST['pppoe_preset'])) { setup_pppoe_reset_file($if, false); @@ -586,7 +586,7 @@ function handle_pppoe_reset() { } function handle_wireless_post() { - global $_POST, $config, $g, $wancfg; + global $_POST, $config, $g, $wancfg, $if; if (!is_array($wancfg['wireless'])) $wancfg['wireless'] = array(); $wancfg['wireless']['standard'] = $_POST['standard'];