diff options
author | jim-p <jimp@pfsense.org> | 2012-10-03 13:17:21 -0400 |
---|---|---|
committer | jim-p <jimp@pfsense.org> | 2012-10-03 13:17:21 -0400 |
commit | 6162b068f6840aa1d03e99e9a496af301b98afab (patch) | |
tree | 4ab1b8775d8dd840b38dad9c41be5987d677a3a6 /usr/local/www | |
parent | 7f835f3c85459076fb6491c4ab35f8737a6f122f (diff) | |
download | pfsense-6162b068f6840aa1d03e99e9a496af301b98afab.zip pfsense-6162b068f6840aa1d03e99e9a496af301b98afab.tar.gz |
Only attempt to unset this if it has been set.
Diffstat (limited to 'usr/local/www')
-rw-r--r-- | usr/local/www/services_ntpd.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/usr/local/www/services_ntpd.php b/usr/local/www/services_ntpd.php index 776e0dc..694235e 100644 --- a/usr/local/www/services_ntpd.php +++ b/usr/local/www/services_ntpd.php @@ -61,7 +61,7 @@ if ($_POST) { if (!empty($_POST['gpsport']) && file_exists('/dev/'.$_POST['gpsport'])) $config['ntpd']['gpsport'] = $_POST['gpsport']; - else + elseif (isset($config['ntpd']['gpsport'])) unset($config['ntpd']['gpsport']); write_config("Updated NTP Server Settings"); |