From: Joey Hess Date: Sat, 26 Jul 2008 18:54:50 +0000 (-0400) Subject: adminemail may be undefined X-Git-Tag: 2.60~205 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=26db34e1d6df761f068819a4b7b23ef0c35c635d;p=ikiwiki.git adminemail may be undefined --- diff --git a/IkiWiki/Plugin/passwordauth.pm b/IkiWiki/Plugin/passwordauth.pm index e0e8e51df..68aaf808f 100644 --- a/IkiWiki/Plugin/passwordauth.pm +++ b/IkiWiki/Plugin/passwordauth.pm @@ -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"));