diff options
author | Olivier Blin <oblin@mandriva.com> | 2008-05-17 11:18:52 +0000 |
---|---|---|
committer | Olivier Blin <oblin@mandriva.com> | 2008-05-17 11:18:52 +0000 |
commit | 0f1b2501d1aa31d7f8b92b207952cd4670715d62 (patch) | |
tree | c60f9c85ced83f6ec496c04ed24746ee54324dd2 /lib/network/connection | |
parent | 5d5553a28eb9b061f697fc27387a092445ad3f41 (diff) | |
download | drakx-net-0f1b2501d1aa31d7f8b92b207952cd4670715d62.tar drakx-net-0f1b2501d1aa31d7f8b92b207952cd4670715d62.tar.gz drakx-net-0f1b2501d1aa31d7f8b92b207952cd4670715d62.tar.bz2 drakx-net-0f1b2501d1aa31d7f8b92b207952cd4670715d62.tar.xz drakx-net-0f1b2501d1aa31d7f8b92b207952cd4670715d62.zip |
more robust check for modules_conf
Diffstat (limited to 'lib/network/connection')
-rw-r--r-- | lib/network/connection/cellular_card.pm | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/network/connection/cellular_card.pm b/lib/network/connection/cellular_card.pm index 96480b2..1bbb23e 100644 --- a/lib/network/connection/cellular_card.pm +++ b/lib/network/connection/cellular_card.pm @@ -139,7 +139,7 @@ sub prepare_device { my $driver = $self->get_driver; require modules; - my $modules_conf = !is_empty_hash_ref($::o) ? $::o->{modules_conf} : modules::any_conf->read; + my $modules_conf = ref($::o) && $::o->{modules_conf} || modules::any_conf->read; modules::load_and_configure($modules_conf, $driver, if_($driver eq 'usbserial', join( ' ', |