From 26db34e1d6df761f068819a4b7b23ef0c35c635d Mon Sep 17 00:00:00 2001 From: Joey Hess Date: Sat, 26 Jul 2008 14:54:50 -0400 Subject: [PATCH] adminemail may be undefined --- IkiWiki/Plugin/passwordauth.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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")); -- 2.26.2