mirror of
https://github.com/pfsense/pfsense.git
synced 2025-10-26 11:38:35 +00:00
Correct array depth in is_array check
This commit is contained in:
parent
8411b218e6
commit
4dc589efd2
@ -63,7 +63,7 @@ function wireless_config_init(&$optcfg) {
|
||||
$pconfig['wep_enable'] = isset($optcfg['wireless']['wep']['enable']);
|
||||
$pconfig['mac_acl'] = $optcfg['wireless']['mac_acl'];
|
||||
|
||||
if (is_array($optcfg['wireless']['wep']['key'])) {
|
||||
if (is_array($optcfg['wireless']['wep'])) {
|
||||
$i = 1;
|
||||
foreach ($optcfg['wireless']['wep']['key'] as $wepkey) {
|
||||
$pconfig['key' . $i] = $wepkey['value'];
|
||||
|
||||
Loading…
Reference in New Issue
Block a user