summaryrefslogtreecommitdiffstats
path: root/perl-install/interactive.pm
diff options
context:
space:
mode:
authorPascal Rigaux <pixel@mandriva.com>2000-05-07 15:41:55 +0000
committerPascal Rigaux <pixel@mandriva.com>2000-05-07 15:41:55 +0000
commit6e0714d453adf6cb59f3a8083d3561d5f274be16 (patch)
treef1b76708279145c1eb63b7d23f5c7d08648858a5 /perl-install/interactive.pm
parentd91336f90687a1f2386f4941b1589c54af085983 (diff)
downloaddrakx-backup-do-not-use-6e0714d453adf6cb59f3a8083d3561d5f274be16.tar
drakx-backup-do-not-use-6e0714d453adf6cb59f3a8083d3561d5f274be16.tar.gz
drakx-backup-do-not-use-6e0714d453adf6cb59f3a8083d3561d5f274be16.tar.bz2
drakx-backup-do-not-use-6e0714d453adf6cb59f3a8083d3561d5f274be16.tar.xz
drakx-backup-do-not-use-6e0714d453adf6cb59f3a8083d3561d5f274be16.zip
no_comment
Diffstat (limited to 'perl-install/interactive.pm')
-rw-r--r--perl-install/interactive.pm6
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 ];