Correct array depth in is_array check

This commit is contained in:
Seth Mos 2008-09-04 17:36:49 +00:00
parent 8411b218e6
commit 4dc589efd2

View File

@ -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'];