summaryrefslogtreecommitdiffstats
path: root/usr/local/www
diff options
context:
space:
mode:
authorjim-p <jimp@pfsense.org>2012-10-03 13:17:21 -0400
committerjim-p <jimp@pfsense.org>2012-10-03 13:17:21 -0400
commit6162b068f6840aa1d03e99e9a496af301b98afab (patch)
tree4ab1b8775d8dd840b38dad9c41be5987d677a3a6 /usr/local/www
parent7f835f3c85459076fb6491c4ab35f8737a6f122f (diff)
downloadpfsense-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.php2
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");
OpenPOWER on IntegriCloud