mirror of
https://github.com/lucaspalomodevelop/core.git
synced 2026-03-14 16:44:39 +00:00
(legacy) fix some more php notices
This commit is contained in:
parent
7dba32f597
commit
d1abcd137c
@ -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];
|
||||
}
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user