Fixed the default gw messup

This commit is contained in:
VictorRobellini
2021-04-26 23:02:58 -04:00
committed by GitHub
parent b28f66a537
commit 697ae5f277

View File

@@ -26,7 +26,7 @@ foreach ($a_gateways as $i => $gateway) {
$gwdescr = $gateway["descr"];
$defaultgw = $gateway['isdefaultgw'];
if (!isset($gateway['isdefaultgw'])) {
if (isset($gateway['isdefaultgw'])) {
$defaultgw = "1";
} else {
$defaultgw = "0";