From abfd0c9bcdf4b31d64983ea557de018afbcd720d Mon Sep 17 00:00:00 2001 From: Scott Ullrich Date: Sun, 7 Mar 2010 14:45:45 -0500 Subject: Ensure string is cleared out if needed --- etc/inc/interfaces.inc | 2 ++ 1 file changed, 2 insertions(+) (limited to 'etc/inc/interfaces.inc') diff --git a/etc/inc/interfaces.inc b/etc/inc/interfaces.inc index e6b61e4..2237193 100644 --- a/etc/inc/interfaces.inc +++ b/etc/inc/interfaces.inc @@ -1642,6 +1642,8 @@ EOD; case 'hostap': if($wlcfg['wpa']['passphrase']) $wpa_passphrase = "wpa_passphrase={$wlcfg['wpa']['passphrase']}\n"; + else + $wpa_passphrase = ""; if (isset($wlcfg['wpa']['enable'])) { $wpa .= <<