mirror of
https://github.com/lucaspalomodevelop/core.git
synced 2026-03-15 00:54:41 +00:00
shell: one isset() is enough
This commit is contained in:
parent
1f1776260d
commit
6db615b5bb
@ -541,10 +541,10 @@ if ($config['interfaces']['lan']) {
|
||||
|
||||
if (empty($config['interfaces']['lan'])) {
|
||||
unset($config['interfaces']['lan']);
|
||||
if (isset($config['dhcpd']) && isset($config['dhcpd']['lan'])) {
|
||||
if (isset($config['dhcpd']['lan'])) {
|
||||
unset($config['dhcpd']['lan']);
|
||||
}
|
||||
if (isset($config['dhcpdv6']) && isset($config['dhcpdv6']['lan'])) {
|
||||
if (isset($config['dhcpdv6']['lan'])) {
|
||||
unset($config['dhcpdv6']['lan']);
|
||||
}
|
||||
unset($config['nat']);
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user