mirror of
https://github.com/pfsense/pfsense.git
synced 2025-10-26 11:38:35 +00:00
Fix foreach error on hosts that have no dyndns entries.
This commit is contained in:
parent
5391d05ceb
commit
88be34ad80
@ -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']);
|
||||
|
||||
Loading…
Reference in New Issue
Block a user