diff options
author | jim-p <jimp@pfsense.org> | 2013-02-05 08:28:57 -0500 |
---|---|---|
committer | jim-p <jimp@pfsense.org> | 2013-02-05 08:29:34 -0500 |
commit | 506c6bee8994ed17f16c56a5c7e2ed4085f76846 (patch) | |
tree | 50fdfe6a280525184b84a947ad4f3882637e1ee8 | |
parent | a9488104aa6981056001a941103dfe09fd1cf871 (diff) | |
download | pfsense-506c6bee8994ed17f16c56a5c7e2ed4085f76846.zip pfsense-506c6bee8994ed17f16c56a5c7e2ed4085f76846.tar.gz |
Test var before using as array. Should fix #2794
-rw-r--r-- | usr/local/www/services_ntpd.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/usr/local/www/services_ntpd.php b/usr/local/www/services_ntpd.php index 648271c..0a7828e 100644 --- a/usr/local/www/services_ntpd.php +++ b/usr/local/www/services_ntpd.php @@ -40,7 +40,7 @@ require("guiconfig.inc"); if (empty($config['ntpd']['interface'])) - if (empty($config['installedpackages']['openntpd']['config'][0]['interface'])) { + if ($config['installedpackages']['openntpd'] && empty($config['installedpackages']['openntpd']['config'][0]['interface'])) { $pconfig['interface'] = explode(",", $config['installedpackages']['openntpd']['config'][0]['interface']); unset($config['installedpackages']['openntpd']); } else |