summaryrefslogtreecommitdiffstats
path: root/perl-install/printerdrake.pm
diff options
context:
space:
mode:
Diffstat (limited to 'perl-install/printerdrake.pm')
-rw-r--r--perl-install/printerdrake.pm6
1 files changed, 1 insertions, 5 deletions
diff --git a/perl-install/printerdrake.pm b/perl-install/printerdrake.pm
index 19de5ba02..3b54ac994 100644
--- a/perl-install/printerdrake.pm
+++ b/perl-install/printerdrake.pm
@@ -197,11 +197,7 @@ wish to access and any applicable user name and password."),
my %depth_to_col = reverse %col_to_depth;
my $is_uniprint = $db_entry{GSDRIVER} eq "uniprint";
- if (@list_res) {
- $printer->{RESOLUTION} = $list_res[0];
- } else {
- $printer->{RESOLUTION} = "Default";
- }
+ $printer->{RESOLUTION} = @res ? $res[0] || "Default" : "Default";
$printer->{CRLF} = $db_entry{DESCR} =~ /HP/;
$printer->{BITSPERPIXEL} = @list_col ? $depth_to_col{$printer->{BITSPERPIXEL}} || $depth_to_col{$col[0]} : "Default";