Update upgrade_config to remove 'defaultgw' from <ppp> config sections

This commit is contained in:
gnhb 2010-05-26 21:21:18 +07:00
parent 82effddb55
commit 6fdfa8fbf9

View File

@ -1980,6 +1980,8 @@ function upgrade_063_to_064() {
if (!isset($ppp['ptpid'])){
$config['ppps']['ppp'][$pppid]['ptpid'] = uniqid('', true);
}
if (isset($ppp['defaultgw'])){
unset($config['ppps']['ppp'][$pppid]['defaultgw']);
}
}