X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=blobdiff_plain;f=lib%2FCatalyst%2FHelper.pm;fp=lib%2FCatalyst%2FHelper.pm;h=3fba2777483dbdb9adbe7fc13e7404382226ef9e;hb=47f36ce52b14c16a275d224ed95e8b821b9794c6;hp=f2e39c92d394c3e90eba3f76c105add53e1bb3c3;hpb=b6d896903dcf3db83957abd9bd160e257b5e14e5;p=catagits%2FCatalyst-Devel.git diff --git a/lib/Catalyst/Helper.pm b/lib/Catalyst/Helper.pm index f2e39c9..3fba277 100644 --- a/lib/Catalyst/Helper.pm +++ b/lib/Catalyst/Helper.pm @@ -325,7 +325,7 @@ sub render_file_contents { || Catalyst::Exception->throw( message => qq/Couldn't process "$template", / . $t->error() ); my $file = $self->mk_file( $path, $output ); - chmod $perms, file($file) if $perms; + chmod $perms, file($file) if defined $perms; } sub _mk_information {