From 3289b42b5320b19ab746c04494a2bdd8322bbbe1 Mon Sep 17 00:00:00 2001 From: jim-p Date: Sun, 10 Feb 2013 21:08:04 -0500 Subject: The actual variable isn't an array, so this test will never succeed. Remove it. Unbreaks ntp. --- etc/inc/system.inc | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) (limited to 'etc/inc/system.inc') 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"; -- cgit v1.1