Commit 0b65e4bf authored by Ad Schellevis's avatar Ad Schellevis

(legacy) fix some uninitialized vars in guiconfig.inc

parent c88a4f7f
......@@ -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))
......
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