Fix foreach error on hosts that have no dyndns entries.

This commit is contained in:
jim-p 2018-01-05 16:42:45 -05:00
parent 5391d05ceb
commit 88be34ad80

View File

@ -5499,6 +5499,10 @@ function upgrade_172_to_173() {
function upgrade_173_to_174() {
global $config;
/* Stop if there is nothing to do. */
if (!is_array($config['dnsupdates']['dnsupdate'])) {
return;
}
/* Remove unused keytype field. */
foreach ($config['dnsupdates']['dnsupdate'] as $i => &$dnsupdate) {
unset($dnsupdate['keytype']);