diff options
author | jim-p <jimp@netgate.com> | 2018-07-16 09:54:06 -0400 |
---|---|---|
committer | jim-p <jimp@netgate.com> | 2018-07-16 09:54:06 -0400 |
commit | 6c4ccc9f76786f940a358698b6e2a7f0245b626d (patch) | |
tree | c122d068104edfa38cb99b9f961c31b542ba90d0 /src/etc/inc/services.inc | |
parent | 1ed21e0a2512554752de35d5758bcff503fcba9b (diff) | |
download | pfsense-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.inc | 6 |
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; } |