diff options
Diffstat (limited to 'Rpmdrake')
-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 650ca4f7..dddc05e9 100644 --- a/Rpmdrake/gui.pm +++ b/Rpmdrake/gui.pm @@ -434,7 +434,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, nocancel => 1); - $choices[0] ? $choices->[$choices[0]] : undef; + defined $choices[0] ? $choices->[$choices[0]] : undef; } sub deps_msg { |