diff options
author | gnhb <gnoahb@gmail.com> | 2010-05-12 18:38:11 +0700 |
---|---|---|
committer | gnhb <gnoahb@gmail.com> | 2010-05-12 18:38:11 +0700 |
commit | 04d36b1f1fdff85cd902b9aa15103b98475b4777 (patch) | |
tree | fb41d6267fba56e5049c516d21187fed4ec68695 /usr/local/www/interfaces_ppps_edit.php | |
parent | d85ba87ff3e387e1b059223917bdae4d47753b53 (diff) | |
download | pfsense-04d36b1f1fdff85cd902b9aa15103b98475b4777.zip pfsense-04d36b1f1fdff85cd902b9aa15103b98475b4777.tar.gz |
Small changes to fix up these pages a little bit.
Diffstat (limited to 'usr/local/www/interfaces_ppps_edit.php')
-rw-r--r-- | usr/local/www/interfaces_ppps_edit.php | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/usr/local/www/interfaces_ppps_edit.php b/usr/local/www/interfaces_ppps_edit.php index c4818cd..53d8ad4 100644 --- a/usr/local/www/interfaces_ppps_edit.php +++ b/usr/local/www/interfaces_ppps_edit.php @@ -176,8 +176,7 @@ if ($_POST) { * data validation procedure below, may trigger a false error * message. */ - if (empty($_POST['pppoe-reset-type'])) { - //unset($_POST['pppoe-reset-type']); + if (empty($_POST['pppoe-reset-type'])) { unset($_POST['pppoe_resethour']); unset($_POST['pppoe_resetminute']); unset($_POST['pppoe_resetdate']); @@ -278,6 +277,8 @@ if ($_POST) { $ppp['ondemand'] = $_POST['ondemand'] ? true : false; if (!empty($_POST['idletimeout'])) $ppp['idletimeout'] = $_POST['idletimeout']; + else + unset($ppp['idletimeout']); $ppp['uptime'] = $_POST['uptime'] ? true : false; if (!empty($_POST['descr'])) $ppp['descr'] = $_POST['descr']; |