summaryrefslogtreecommitdiffstats
path: root/lib/network
diff options
context:
space:
mode:
Diffstat (limited to 'lib/network')
-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]});
},