From: Moritz Bunkus Date: Tue, 5 Oct 2010 13:54:20 +0000 (+0200) Subject: Array-Wanldung von undefinierten Werten verhindern X-Git-Tag: release-2.6.2beta1~108 X-Git-Url: http://wagnertech.de/git?a=commitdiff_plain;h=0e17cd936fbe69c427f626337407fd957dffcefb;p=kivitendo-erp.git Array-Wanldung von undefinierten Werten verhindern Passiert, wenn keine Drucker angelegt sind. --- 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