diff options
Diffstat (limited to 'Rpmdrake/gui.pm')
-rw-r--r-- | Rpmdrake/gui.pm | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Rpmdrake/gui.pm b/Rpmdrake/gui.pm index a986d894..64b1e604 100644 --- a/Rpmdrake/gui.pm +++ b/Rpmdrake/gui.pm @@ -474,7 +474,7 @@ sub callback_choices { my @choices = interactive_list_(N("Please choose"), (scalar(@$choices) == 1 ? N("The following package is needed:") : N("One of the following packages is needed:")), [ map { urpm_name($_) } @$choices ], $callback); - $choices->[$choices[0]]; + $choices[0] ? $choices->[$choices[0]] : undef; } sub toggle_nodes { |