diff options
author | Pascal Rigaux <pixel@mandriva.com> | 2000-05-07 15:41:55 +0000 |
---|---|---|
committer | Pascal Rigaux <pixel@mandriva.com> | 2000-05-07 15:41:55 +0000 |
commit | 6e0714d453adf6cb59f3a8083d3561d5f274be16 (patch) | |
tree | f1b76708279145c1eb63b7d23f5c7d08648858a5 /perl-install/interactive.pm | |
parent | d91336f90687a1f2386f4941b1589c54af085983 (diff) | |
download | drakx-6e0714d453adf6cb59f3a8083d3561d5f274be16.tar drakx-6e0714d453adf6cb59f3a8083d3561d5f274be16.tar.gz drakx-6e0714d453adf6cb59f3a8083d3561d5f274be16.tar.bz2 drakx-6e0714d453adf6cb59f3a8083d3561d5f274be16.tar.xz drakx-6e0714d453adf6cb59f3a8083d3561d5f274be16.zip |
no_comment
Diffstat (limited to 'perl-install/interactive.pm')
-rw-r--r-- | perl-install/interactive.pm | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/perl-install/interactive.pm b/perl-install/interactive.pm index 684f68179..96313f199 100644 --- a/perl-install/interactive.pm +++ b/perl-install/interactive.pm @@ -227,8 +227,10 @@ sub ask_from_entries_ref($$$$;$%) { if ((ref $_) eq "SCALAR") { { val => $_ } } else { - add2hash_($_, { type => 'list' }) if @{$_->{list}} > 1; #- TODO: remove the if, not needed? - ${$_->{val}} = $_->{list}[0] if $_->{not_edit} && !member(${$_->{val}}, @{$_->{list}}); + if (@{$_->{list} || []} > 1) { + add2hash_($_, { type => 'list' }); + ${$_->{val}} = $_->{list}[0] if $_->{not_edit} && !member(${$_->{val}}, @{$_->{list}}); + } $_; } } @$val ]; |