Commit 42b40d26 authored by Ad Schellevis's avatar Ad Schellevis Committed by Franco Fichtner

(legacy) fix some more php notices

parent dd45a4e3
......@@ -142,14 +142,14 @@ if(function_exists("display_error_form") && !isset($config['system']['webgui']['
}
}
if(is_array($config['dyndnses']['dyndns']) && !$found_host)
if(isset($config['dyndnses']['dyndns']) && is_array($config['dyndnses']['dyndns']) && !$found_host)
foreach($config['dyndnses']['dyndns'] as $dyndns)
if(strcasecmp($dyndns['host'], $referrer_host) == 0) {
$found_host = true;
break;
}
if(is_array($config['dnsupdates']['dnsupdate']) && !$found_host)
if(isset($config['dnsupdates']['dnsupdate']) && is_array($config['dnsupdates']['dnsupdate']) && !$found_host)
foreach($config['dnsupdates']['dnsupdate'] as $rfc2136)
if(strcasecmp($rfc2136['host'], $referrer_host) == 0) {
$found_host = true;
......
......@@ -4332,7 +4332,12 @@ function get_real_interface($interface = "wan", $family = "all", $realv6iface =
$cfg = &$config['interfaces'][$interface];
if ($family == "inet6") {
switch ($cfg['ipaddrv6']) {
if (isset($cfg['ipaddrv6'])) {
$ipaddrv6 = $cfg['ipaddrv6'];
} else {
$ipaddrv6 = "";
}
switch ($ipaddrv6) {
case "6rd":
case "6to4":
$wanif = "{$interface}_stf";
......@@ -4743,10 +4748,11 @@ function find_interface_ipv6($interface, $flush = false) {
/* Setup IP cache */
if (!isset($interface_ipv6_arr_cache[$interface]) or $flush) {
$ifinfo = pfSense_get_interface_addresses($interface);
$interface_ipv6_arr_cache[$interface] = $ifinfo['ipaddr6'];
$interface_snv6_arr_cache[$interface] = $ifinfo['subnetbits6'];
if (isset($ifinfo['ipaddr6'])) {
$interface_ipv6_arr_cache[$interface] = $ifinfo['ipaddr6'];
$interface_snv6_arr_cache[$interface] = $ifinfo['subnetbits6'];
}
}
return $interface_ipv6_arr_cache[$interface];
}
......
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