From 4dc589efd21565ea73606e060779b6b614061771 Mon Sep 17 00:00:00 2001 From: Seth Mos Date: Thu, 4 Sep 2008 17:36:49 +0000 Subject: [PATCH] Correct array depth in is_array check --- usr/local/www/interfaces_wlan.inc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/usr/local/www/interfaces_wlan.inc b/usr/local/www/interfaces_wlan.inc index 719d62e0ce..8b7567ece9 100755 --- a/usr/local/www/interfaces_wlan.inc +++ b/usr/local/www/interfaces_wlan.inc @@ -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'];