summaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorOlivier Blin <oblin@mandriva.com>2008-05-17 11:20:55 +0000
committerOlivier Blin <oblin@mandriva.com>2008-05-17 11:20:55 +0000
commit5f002e9b3cbdc000a53ceb536497275b2ef2ce90 (patch)
tree80365bf68735b19c89afdd04680699aa7d02c2f1 /lib
parent0f1b2501d1aa31d7f8b92b207952cd4670715d62 (diff)
downloaddrakx-net-5f002e9b3cbdc000a53ceb536497275b2ef2ce90.tar
drakx-net-5f002e9b3cbdc000a53ceb536497275b2ef2ce90.tar.gz
drakx-net-5f002e9b3cbdc000a53ceb536497275b2ef2ce90.tar.bz2
drakx-net-5f002e9b3cbdc000a53ceb536497275b2ef2ce90.tar.xz
drakx-net-5f002e9b3cbdc000a53ceb536497275b2ef2ce90.zip
do not vivify $::o
Diffstat (limited to 'lib')
-rw-r--r--lib/network/netconnect.pm2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/network/netconnect.pm b/lib/network/netconnect.pm
index eb1b2c6..1863535 100644
--- a/lib/network/netconnect.pm
+++ b/lib/network/netconnect.pm
@@ -195,7 +195,7 @@ sub real_main {
pre => sub {
@providers_data = $connection->get_providers;
require lang;
- my $locale_country = lang::c2name($::o->{locale}{country} || lang::read()->{country});
+ my $locale_country = lang::c2name(ref($::o) && $::o->{locale}{country} || lang::read()->{country});
my $separator = $providers_data[1];
$provider_name = find { /^\Q$locale_country$separator\E/ } sort(keys %{$providers_data[0]});
},