summaryrefslogtreecommitdiffstats
path: root/usr/local
diff options
context:
space:
mode:
authorjim-p <jimp@pfsense.org>2012-11-15 16:53:37 -0500
committerjim-p <jimp@pfsense.org>2012-11-15 16:54:58 -0500
commit31fcd0bd7ba37fe64e3c6a803043399d0f8bdf08 (patch)
treec57938632fa1f826a19417f6d73b881662ae75e7 /usr/local
parent0450342b7d32f0ec506f343037e604d66e74194a (diff)
downloadpfsense-31fcd0bd7ba37fe64e3c6a803043399d0f8bdf08.zip
pfsense-31fcd0bd7ba37fe64e3c6a803043399d0f8bdf08.tar.gz
Add extra safety belts here.
Diffstat (limited to 'usr/local')
-rwxr-xr-xusr/local/www/interfaces.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/usr/local/www/interfaces.php b/usr/local/www/interfaces.php
index 037ed06..97537cf 100755
--- a/usr/local/www/interfaces.php
+++ b/usr/local/www/interfaces.php
@@ -960,7 +960,7 @@ function handle_wireless_post() {
$wancfg['wireless']['auth_server_shared_secret2'] = $_POST['auth_server_shared_secret2'];
if ($_POST['persistcommonwireless'] == "yes") {
- if (!is_array($config['wireless']['interfaces'][$wlanbaseif]))
+ if (is_array($config['wireless']) && is_array($config['wireless']['interfaces']) && !is_array($config['wireless']['interfaces'][$wlanbaseif]))
$config['wireless']['interfaces'][$wlanbaseif] = array();
} else if (isset($config['wireless']['interfaces'][$wlanbaseif]))
unset($config['wireless']['interfaces'][$wlanbaseif]);
OpenPOWER on IntegriCloud