comments: avoid warning if there's no subject

master
Simon McVittie 2008-12-11 02:03:07 +00:00
parent a5889912b3
commit fbf145ca3f
1 changed files with 4 additions and 2 deletions

View File

@ -434,8 +434,10 @@ sub sessioncgi ($$) { #{{{
}
my $subject = $form->field('subject');
$subject =~ s/"/"/g;
$content .= " subject=\"$subject\"\n";
if (length $subject) {
$subject =~ s/"/"/g;
$content .= " subject=\"$subject\"\n";
}
$content .= " date=\"" . IkiWiki::formattime(time, '%X %x') . "\"\n";