adminemail may be undefined

master
Joey Hess 2008-07-26 14:54:50 -04:00
parent 79f637a436
commit 26db34e1d6
1 changed files with 1 additions and 1 deletions

View File

@ -279,7 +279,7 @@ sub formbuilder (@) { #{{{
error($@) if $@;
sendmail(
To => IkiWiki::userinfo_get($user_name, "email"),
From => "$config{wikiname} admin <$config{adminemail}>",
From => "$config{wikiname} admin <".(defined $config{adminemail} ? $config{adminemail} : "")>",
Subject => "$config{wikiname} information",
Message => $template->output,
) or error(gettext("Failed to send mail"));