fixed a problem caused by empty description fields

This commit is contained in:
JT Smith 2003-07-02 00:43:02 +00:00
parent 03ce7b9cc9
commit efd8782cd3

View file

@ -158,7 +158,7 @@ sub www_view {
$var{"description.first.2sentences"} =~ s/^((.*?\.){2}).*/$1/s;
$var{"description.first.sentence"} = $var{"description.first.2sentences"};
$var{"description.first.sentence"} =~ s/^(.*?\.).*/$1/s;
if ($session{form}{makePrintable}) {
if ($session{form}{makePrintable} || $var{description} eq "") {
$var{description} =~ s/\^\-\;//g;
$var{isFirstPage} = 1;
$var{isLastPage} = 1;