diff options
author | Ermal <eri@pfsense.org> | 2010-10-01 17:38:15 +0000 |
---|---|---|
committer | Ermal <eri@pfsense.org> | 2010-10-01 17:38:15 +0000 |
commit | b314ab724d3ee52db07d4c7231622886369d543a (patch) | |
tree | d3f8024b14a9f8843a353d3d2508315eec73edb3 /etc | |
parent | 23fafd1482d7ece0614bc467a304437b516d997a (diff) | |
download | pfsense-b314ab724d3ee52db07d4c7231622886369d543a.zip pfsense-b314ab724d3ee52db07d4c7231622886369d543a.tar.gz |
Better initialize this.
Diffstat (limited to 'etc')
-rw-r--r-- | etc/inc/upgrade_config.inc | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/etc/inc/upgrade_config.inc b/etc/inc/upgrade_config.inc index 1182156..5e83ff5 100644 --- a/etc/inc/upgrade_config.inc +++ b/etc/inc/upgrade_config.inc @@ -767,6 +767,7 @@ function upgrade_042_to_043() { if(! interface_has_gateway($ifname)) { continue; } + $config['gateways']['gateway_item'][$i] = array(); if(is_ipaddr($config['interfaces'][$ifname]['gateway'])) { $config['gateways']['gateway_item'][$i]['gateway'] = $config['interfaces'][$ifname]['gateway']; $config['gateways']['gateway_item'][$i]['descr'] = "Interface $ifname Static Gateway"; |