Commit bf25c566 authored by Kevin Falcone's avatar Kevin Falcone
Browse files

clean up a warning when you have empty OCFVs

git-svn-id: svn+ssh://svn.bestpractical.com/svn/bps-public/rt/3.8/trunk@18768 e417ac7c-1bcc-0310-8ffa-8f5827389a85
parent 5dc827c1
......@@ -159,7 +159,7 @@ content, try "LargeContent"
sub Content {
my $self = shift;
my $content = $self->SUPER::Content;
if ( !(defined $content && length $content) && $self->ContentType eq 'text/plain' ) {
if ( !(defined $content && length $content) && $self->ContentType && $self->ContentType eq 'text/plain' ) {
return $self->LargeContent;
} else {
return $content;
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment