summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorOlivier Blin <oblin@mandriva.com>2008-02-29 01:20:24 +0000
committerOlivier Blin <oblin@mandriva.com>2008-02-29 01:20:24 +0000
commit4d4d7294f82720d3915622d3afb7f4e1b62fcc07 (patch)
tree843185d2272426c9c7a2c6226054dda03f510309
parent075a6782644dddbdbe101d01063ef4ede31ac07c (diff)
downloaddrakx-net-4d4d7294f82720d3915622d3afb7f4e1b62fcc07.tar
drakx-net-4d4d7294f82720d3915622d3afb7f4e1b62fcc07.tar.gz
drakx-net-4d4d7294f82720d3915622d3afb7f4e1b62fcc07.tar.bz2
drakx-net-4d4d7294f82720d3915622d3afb7f4e1b62fcc07.tar.xz
drakx-net-4d4d7294f82720d3915622d3afb7f4e1b62fcc07.zip
simplify
-rw-r--r--lib/network/connection/wireless.pm6
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/network/connection/wireless.pm b/lib/network/connection/wireless.pm
index 34db543..0608847 100644
--- a/lib/network/connection/wireless.pm
+++ b/lib/network/connection/wireless.pm
@@ -948,14 +948,14 @@ sub wpa_supplicant_add_eap_network {
$mykey = join('_', "eap", $myone);
if (!defined $ui_input->{$mykey}) {
#Only if it is defined and not empty
- $network->{$myone} = $default_eap_cfg->{$myone} if defined $default_eap_cfg->{$myone} && $default_eap_cfg->{$myone} ne "";
+ $network->{$myone} = $default_eap_cfg->{$myone} if $default_eap_cfg->{$myone};
} elsif ($ui_input->{$mykey} =~ /auto detect/i) {
#Only if it is defined and not empty
- $network->{$myone} = $default_eap_cfg->{$myone} if defined $default_eap_cfg->{$myone} && $default_eap_cfg->{$myone} ne "";
+ $network->{$myone} = $default_eap_cfg->{$myone} if $default_eap_cfg->{$myone};
} else {
#Handle also quoting
#Do not define if blank, the save routine will delete entry from file
- next if $ui_input->{$mykey} eq "";
+ next if !$ui_input->{$mykey};
$network->{$myone} = $myeap_vars->{$myone} == 2 ? qq("$ui_input->{$mykey}") : $ui_input->{$mykey};
}
}