From 0e17cd936fbe69c427f626337407fd957dffcefb Mon Sep 17 00:00:00 2001 From: Moritz Bunkus Date: Tue, 5 Oct 2010 15:54:20 +0200 Subject: [PATCH] Array-Wanldung von undefinierten Werten verhindern Passiert, wenn keine Drucker angelegt sind. --- bin/mozilla/io.pl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bin/mozilla/io.pl b/bin/mozilla/io.pl index adaa39946..b40e7ed9a 100644 --- a/bin/mozilla/io.pl +++ b/bin/mozilla/io.pl @@ -1166,7 +1166,7 @@ sub print_options { push @MEDIA, grep $_, opthash("screen", $form->{OP}{screen}, $locale->text('Screen')), - (scalar @{ $form->{printers} } && $main::latex_templates) ? + ($form->{printers} && scalar @{ $form->{printers} } && $main::latex_templates) ? opthash("printer", $form->{OP}{printer}, $locale->text('Printer')) : undef, ($main::latex_templates && !$options{no_queue}) ? opthash("queue", $form->{OP}{queue}, $locale->text('Queue')) : undef -- 2.20.1