diff options
-rw-r--r-- | Rpmdrake/gui.pm | 13 |
1 files changed, 6 insertions, 7 deletions
diff --git a/Rpmdrake/gui.pm b/Rpmdrake/gui.pm index 8faa81f2..23991afc 100644 --- a/Rpmdrake/gui.pm +++ b/Rpmdrake/gui.pm @@ -150,13 +150,12 @@ sub get_description { } sub get_string_from_keywords { - my ($medium) = @_; - return if !$medium->{mediacfg}; - my ($distribconf, $medium_name) = @{$medium->{mediacfg}}; - - return if !$distribconf; - - my @media_types = split(':', $distribconf->getvalue($medium_name, 'media_type')); + my ($medium, $name) = @_; + my @media_types; + if ($medium->{mediacfg}) { + my ($distribconf, $medium_name) = @{$medium->{mediacfg}}; + @media_types = split(':', $distribconf->getvalue($medium_name, 'media_type')) if $distribconf; + } my $unsupported = N("It is <b>not supported</b> by Mageia."); my $dangerous = N("It may <b>break</b> your system."); |