summaryrefslogtreecommitdiffstats
path: root/src/etc/inc/services.inc
diff options
context:
space:
mode:
authorjim-p <jimp@netgate.com>2018-07-16 09:54:06 -0400
committerjim-p <jimp@netgate.com>2018-07-16 09:54:06 -0400
commit6c4ccc9f76786f940a358698b6e2a7f0245b626d (patch)
treec122d068104edfa38cb99b9f961c31b542ba90d0 /src/etc/inc/services.inc
parent1ed21e0a2512554752de35d5758bcff503fcba9b (diff)
downloadpfsense-6c4ccc9f76786f940a358698b6e2a7f0245b626d.zip
pfsense-6c4ccc9f76786f940a358698b6e2a7f0245b626d.tar.gz
Fix PHP7 errors in the Dynamic DNS widget. Fixes #8648
Diffstat (limited to 'src/etc/inc/services.inc')
-rw-r--r--src/etc/inc/services.inc6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/etc/inc/services.inc b/src/etc/inc/services.inc
index cb1ce91..2b3cefd 100644
--- a/src/etc/inc/services.inc
+++ b/src/etc/inc/services.inc
@@ -1987,6 +1987,12 @@ function dyndnsCheckIP($int) {
// Append the factory default check IP service to the list (if not disabled).
if (!isset($config['checkipservices']['disable_factory_default'])) {
+ if (!is_array($config['checkipservices'])) {
+ $config['checkipservices'] = array();
+ }
+ if (!is_array($config['checkipservices']['checkipservice'])) {
+ $config['checkipservices']['checkipservice'] = array();
+ }
$config['checkipservices']['checkipservice'][] = $factory_default_checkipservice;
}
OpenPOWER on IntegriCloud