diff options
author | Phil Davis <phil.davis@inf.org> | 2015-12-17 08:56:27 +0545 |
---|---|---|
committer | Phil Davis <phil.davis@inf.org> | 2015-12-17 08:56:27 +0545 |
commit | 20db3e1adb437d8e094077e33e402ff805122a82 (patch) | |
tree | f6804fef026b9cae9c7391d897f220a84cf203e4 /src/usr/local/www/services_ntpd.php | |
parent | 8152403354e59b40c518414523383c11fdc1a155 (diff) | |
download | pfsense-20db3e1adb437d8e094077e33e402ff805122a82.zip pfsense-20db3e1adb437d8e094077e33e402ff805122a82.tar.gz |
Code style services
Diffstat (limited to 'src/usr/local/www/services_ntpd.php')
-rw-r--r-- | src/usr/local/www/services_ntpd.php | 12 |
1 files changed, 7 insertions, 5 deletions
diff --git a/src/usr/local/www/services_ntpd.php b/src/usr/local/www/services_ntpd.php index bf9b518..e672f99 100644 --- a/src/usr/local/www/services_ntpd.php +++ b/src/usr/local/www/services_ntpd.php @@ -72,7 +72,7 @@ if (!is_array($config['ntpd'])) { if (empty($config['ntpd']['interface'])) { if (is_array($config['installedpackages']['openntpd']) && is_array($config['installedpackages']['openntpd']['config']) && - is_array($config['installedpackages']['openntpd']['config'][0]) && !empty($config['installedpackages']['openntpd']['config'][0]['interface'])) { + is_array($config['installedpackages']['openntpd']['config'][0]) && !empty($config['installedpackages']['openntpd']['config'][0]['interface'])) { $pconfig['interface'] = explode(",", $config['installedpackages']['openntpd']['config'][0]['interface']); unset($config['installedpackages']['openntpd']); write_config("Upgraded settings from openttpd"); @@ -269,10 +269,12 @@ $pgtitle = array(gettext("Services"), gettext("NTP"), gettext("NTP")); $shortcut_section = "ntp"; include("head.inc"); -if ($input_errors) +if ($input_errors) { print_input_errors($input_errors); -if ($savemsg) +} +if ($savemsg) { print_info_box($savemsg, 'success'); +} $tab_array = array(); $tab_array[] = array(gettext("NTP"), true, "services_ntpd.php"); @@ -296,7 +298,7 @@ $section->addInput(new Form_Select( 'Selecting no interfaces will listen on all interfaces with a wildcard.' . '<br />' . 'Selecting all interfaces will explicitly listen on only the interfaces/IPs specified.'); -$timeservers = explode( ' ', $config['system']['timeservers']); +$timeservers = explode(' ', $config['system']['timeservers']); $maxrows = max(count($timeservers), 1); for ($counter=0; $counter < $maxrows; $counter++) { $group = new Form_Group($counter == 0 ? 'Time servers':''); @@ -504,7 +506,7 @@ print($form); <script type="text/javascript"> //<![CDATA[ -events.push(function(){ +events.push(function() { // Make the ‘clear’ button a plain button, not a submit button $('#btnadvstats').prop('type','button'); |