summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorPhil Davis <phil.davis@inf.org>2016-03-16 15:27:56 +0545
committerPhil Davis <phil.davis@inf.org>2016-03-16 15:27:56 +0545
commitf99f8a67f9c43826833ad4e02274d1df716e4334 (patch)
treeb50a1fac603d3122d7cec6731626e07a9e64a1ab /src
parent0e334a37f4d2dcf6352ed11a61e2447a6907e36d (diff)
downloadpfsense-f99f8a67f9c43826833ad4e02274d1df716e4334.zip
pfsense-f99f8a67f9c43826833ad4e02274d1df716e4334.tar.gz
services_ntpd fix leaptext array key name
Use leaptext everywhere - some references were to leaptext and some to leaptxt, so it didn't work.
Diffstat (limited to 'src')
-rw-r--r--src/usr/local/www/services_ntpd.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/usr/local/www/services_ntpd.php b/src/usr/local/www/services_ntpd.php
index 5356dff..dd639ac 100644
--- a/src/usr/local/www/services_ntpd.php
+++ b/src/usr/local/www/services_ntpd.php
@@ -169,8 +169,8 @@ if ($_POST) {
enable_rrd_graphing();
}
- if (!empty($_POST['leaptxt'])) {
- $config['ntpd']['leapsec'] = base64_encode($_POST['leaptxt']);
+ if (!empty($_POST['leaptext'])) {
+ $config['ntpd']['leapsec'] = base64_encode($_POST['leaptext']);
} elseif (isset($config['ntpd']['leapsec'])) {
unset($config['ntpd']['leapsec']);
}
OpenPOWER on IntegriCloud