summaryrefslogtreecommitdiffstats
path: root/usr/local/www/services_ntpd.php
diff options
context:
space:
mode:
authorJean Cyr <jcyr@dillobits.com>2014-09-23 03:16:24 -0400
committerJean Cyr <jcyr@dillobits.com>2014-09-23 03:16:24 -0400
commit63d5a5e0e2150706b9b84ac4e60d7388c6f0bbd5 (patch)
tree854ca0d52ef3cae354b7a77396fa9d916d3de00e /usr/local/www/services_ntpd.php
parent5d14b13ec1a43f825b98acc6554536b6ef2b4281 (diff)
downloadpfsense-63d5a5e0e2150706b9b84ac4e60d7388c6f0bbd5.zip
pfsense-63d5a5e0e2150706b9b84ac4e60d7388c6f0bbd5.tar.gz
NTP server configuration does not highlight selected interfaces
Missing explode of selected interface list prevent logic from working.
Diffstat (limited to 'usr/local/www/services_ntpd.php')
-rw-r--r--usr/local/www/services_ntpd.php4
1 files changed, 4 insertions, 0 deletions
diff --git a/usr/local/www/services_ntpd.php b/usr/local/www/services_ntpd.php
index ac36844..f49fde3 100644
--- a/usr/local/www/services_ntpd.php
+++ b/usr/local/www/services_ntpd.php
@@ -172,6 +172,10 @@ if ($_POST) {
}
$closehead = false;
$pconfig = &$config['ntpd'];
+if (empty($pconfig['interface']))
+ $pconfig['interface'] = array();
+else
+ $pconfig['interface'] = explode(",", $pconfig['interface']);
$pgtitle = array(gettext("Services"),gettext("NTP"));
$shortcut_section = "ntp";
include("head.inc");
OpenPOWER on IntegriCloud