fix header sending for tied printing
[perl/plp/.git] / PLP.pm
diff --git a/PLP.pm b/PLP.pm
index 6d6a520d0cc78c353f4a99c128449f8c4903cb70..57292ad2589d0760f3b1aa84668eb22c66b0c6ec 100644 (file)
--- a/PLP.pm
+++ b/PLP.pm
@@ -172,7 +172,7 @@ sub mod_perl_init {
 
 # FAST printing under mod_perl
 sub mod_perl_print {
-    return if @_ == 1 and not length $_[0];
+       return unless grep length, @_;
     PLP::sendheaders() unless $PLP::sentheaders;
     $PLP::r->print(@_);
 }