From 2a73f5ab6362a8213e965936d4600d222ade5c5d Mon Sep 17 00:00:00 2001 From: Graham Knop Date: Thu, 19 May 2011 19:25:06 -0500 Subject: [PATCH] fix undefined warnings --- lib/WebGUI/Asset.pm | 1 + 1 file changed, 1 insertion(+) diff --git a/lib/WebGUI/Asset.pm b/lib/WebGUI/Asset.pm index 909de6527..4bc54b99f 100644 --- a/lib/WebGUI/Asset.pm +++ b/lib/WebGUI/Asset.pm @@ -180,6 +180,7 @@ around extraHeadTags => sub { if (@_ > 0) { my $unpacked = $_[0]; my $packed = $unpacked; ##Undo magic aliasing since a reference is passed below + return if !defined $packed; HTML::Packer::minify( \$packed, { remove_newlines => 1, do_javascript => "shrink",