Avoid uninitialized warnings with comments+no CGI.

master
Amitai Schlair 2014-12-28 13:15:45 -05:00
parent b435ddb8de
commit a87f43d71e
1 changed files with 6 additions and 4 deletions

View File

@ -206,10 +206,12 @@ sub preprocess {
$commentopenid = $commentuser; $commentopenid = $commentuser;
} }
else { else {
$commentauthorurl = IkiWiki::cgiurl( if (length $config{cgiurl}) {
do => 'goto', $commentauthorurl = IkiWiki::cgiurl(
page => IkiWiki::userpage($commentuser) do => 'goto',
); page => IkiWiki::userpage($commentuser)
);
}
$commentauthor = $commentuser; $commentauthor = $commentuser;
} }