(legacy) fix some uninitialized vars in guiconfig.inc

This commit is contained in:
Ad Schellevis 2015-08-18 16:43:31 +00:00
parent c88a4f7fcf
commit 0b65e4bfcc

View File

@ -463,9 +463,9 @@ function update_if_changed($varname, & $orig, $new) {
function address_to_pconfig($adr, &$padr, &$pmask, &$pnot, &$pbeginport, &$pendport) {
if (isset($adr['any']))
$padr = "any";
else if ($adr['network'])
else if (isset($adr['network']))
$padr = $adr['network'];
else if ($adr['address']) {
else if (isset($adr['address'])) {
list($padr, $pmask) = explode("/", $adr['address']);
if (!$pmask) {
if (is_ipaddrv6($padr))