comments: avoid warning if there's no subject
parent
a5889912b3
commit
fbf145ca3f
|
@ -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";
|
||||
|
||||
|
|
Loading…
Reference in New Issue