mirror of
https://github.com/billz/raspap-webgui.git
synced 2025-03-01 10:31:47 +00:00
Resolve php warnings w/ null coalescing operator
This commit is contained in:
parent
5020e8b5a0
commit
26bd632bab
@ -52,8 +52,8 @@ function DisplayDHCPConfig()
|
|||||||
$conf = ParseConfig($return);
|
$conf = ParseConfig($return);
|
||||||
exec('cat '. RASPI_DNSMASQ_PREFIX.$ap_iface.'.conf', $return);
|
exec('cat '. RASPI_DNSMASQ_PREFIX.$ap_iface.'.conf', $return);
|
||||||
$conf = array_merge(ParseConfig($return));
|
$conf = array_merge(ParseConfig($return));
|
||||||
$hosts = (array)$conf['dhcp-host'];
|
$hosts = (array)($conf['dhcp-host'] ?? []);
|
||||||
$upstreamServers = (array)$conf['server'];
|
$upstreamServers = (array)($conf['server'] ?? []);
|
||||||
exec("ip -o link show | awk -F': ' '{print $2}'", $interfaces);
|
exec("ip -o link show | awk -F': ' '{print $2}'", $interfaces);
|
||||||
exec('cat ' . RASPI_DNSMASQ_LEASES, $leases);
|
exec('cat ' . RASPI_DNSMASQ_LEASES, $leases);
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user