adminemail may be undefined
parent
79f637a436
commit
26db34e1d6
|
@ -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"));
|
||||
|
|
Loading…
Reference in New Issue