summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--perl-install/install_steps_interactive.pm7
1 files changed, 5 insertions, 2 deletions
diff --git a/perl-install/install_steps_interactive.pm b/perl-install/install_steps_interactive.pm
index 0aae8f46e..51ccb2771 100644
--- a/perl-install/install_steps_interactive.pm
+++ b/perl-install/install_steps_interactive.pm
@@ -855,8 +855,11 @@ sub summary {
pkgs::packageFlagInstalled(pkgs::packageByName($o->{packages}, 'cups')) and return _("Remote CUPS server");
return _("No printer");
}
- my $entry = $printer->{configured}{currentqueue} || (values %{$printer->{configured}{queuedata}})[0];
- return "$entry->{make} $entry->{model}";
+ my $entry;
+ foreach ($printer->{configured}{currentqueue}, values %{$printer->{configured}{queuedata}}) {
+ $_ && ($_->{make} || $_->{model}) and return "$_->{make} $_->{model}";
+ }
+ return _("Remote CUPS server"); #- fall back in case of something wrong.
};
$o->ask_from_({