diff options
author | jim-p <jimp@pfsense.org> | 2013-02-10 21:08:04 -0500 |
---|---|---|
committer | jim-p <jimp@pfsense.org> | 2013-02-10 21:08:26 -0500 |
commit | 3289b42b5320b19ab746c04494a2bdd8322bbbe1 (patch) | |
tree | 2a74dad082aeaf5759e1f515f24b429618b9901c /etc/inc/system.inc | |
parent | 51edea83c209356f0a3c4428c3ecf0e3b50f332a (diff) | |
download | pfsense-3289b42b5320b19ab746c04494a2bdd8322bbbe1.zip pfsense-3289b42b5320b19ab746c04494a2bdd8322bbbe1.tar.gz |
The actual variable isn't an array, so this test will never succeed. Remove it. Unbreaks ntp.
Diffstat (limited to 'etc/inc/system.inc')
-rw-r--r-- | etc/inc/system.inc | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/etc/inc/system.inc b/etc/inc/system.inc index a7b70a5..4c38440 100644 --- a/etc/inc/system.inc +++ b/etc/inc/system.inc @@ -1243,10 +1243,8 @@ function system_ntp_configure($start_ntpd=true) { $ntpcfg .= "\n\n# Upstream Servers\n"; /* foreach through servers and write out to ntpd.conf */ - if (is_array($config['system']['timeservers'])) { - foreach (explode(' ', $config['system']['timeservers']) as $ts) - $ntpcfg .= "server {$ts} iburst maxpoll 9\n"; - } +- foreach (explode(' ', $config['system']['timeservers']) as $ts) +- $ntpcfg .= "server {$ts} iburst maxpoll 9\n"; $ntpcfg .= "enable monitor\n"; $ntpcfg .= "enable stats\n"; |