Commit 6c4b4446 authored by Franco Fichtner's avatar Franco Fichtner

config: fix upgrade path illegal access

parent 47157048
......@@ -786,13 +786,15 @@ function upgrade_042_to_043() {
}
function upgrade_043_to_044() {
function upgrade_043_to_044()
{
global $config;
/* migrate static routes to the new gateways config */
$gateways = return_gateways_array(true);
$i = 0;
if (is_array($config['staticroutes']['route'])) {
if (isset($config['staticroutes']['route'])) {
$gwmap = array();
foreach ($config['staticroutes']['route'] as $idx => $sroute) {
$found = false;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment