summaryrefslogtreecommitdiffstats
path: root/usr
diff options
context:
space:
mode:
authorRenato Botelho <garga@FreeBSD.org>2015-02-24 15:39:39 -0300
committerRenato Botelho <garga@FreeBSD.org>2015-02-24 15:39:39 -0300
commit88a5ad7eea2d9c09187bf210e556a37ded89b8b6 (patch)
treeca89cf3e98507f75cfa9a43c1bd0488b3c38426c /usr
parentb8b3784f243f8f8a372cf976fa2385ca1e14e80c (diff)
parente2caaee8ef59a1dd2e0389564f6c59798a54664b (diff)
downloadpfsense-88a5ad7eea2d9c09187bf210e556a37ded89b8b6.zip
pfsense-88a5ad7eea2d9c09187bf210e556a37ded89b8b6.tar.gz
Merge pull request #1494 from k-paulius/ntp-rrd-fix
Diffstat (limited to 'usr')
-rw-r--r--usr/local/www/services_ntpd.php6
1 files changed, 4 insertions, 2 deletions
diff --git a/usr/local/www/services_ntpd.php b/usr/local/www/services_ntpd.php
index 948ef6e..fb7820f 100644
--- a/usr/local/www/services_ntpd.php
+++ b/usr/local/www/services_ntpd.php
@@ -148,12 +148,14 @@ if ($_POST) {
elseif (isset($config['ntpd']['notrap']))
unset($config['ntpd']['notrap']);
- if ((empty($_POST['statsgraph'])) != (isset($config['ntpd']['statsgraph'])));
- enable_rrd_graphing();
+ if ((empty($_POST['statsgraph'])) == (isset($config['ntpd']['statsgraph'])))
+ $enable_rrd_graphing = true;
if (!empty($_POST['statsgraph']))
$config['ntpd']['statsgraph'] = $_POST['statsgraph'];
elseif (isset($config['ntpd']['statsgraph']))
unset($config['ntpd']['statsgraph']);
+ if (!empty($enable_rrd_graphing))
+ enable_rrd_graphing();
if (!empty($_POST['leaptxt']))
$config['ntpd']['leapsec'] = base64_encode($_POST['leaptxt']);
OpenPOWER on IntegriCloud