adminemail may be undefined
authorJoey Hess <joey@kodama.kitenet.net>
Sat, 26 Jul 2008 18:54:50 +0000 (14:54 -0400)
committerJoey Hess <joey@kodama.kitenet.net>
Sat, 26 Jul 2008 18:54:50 +0000 (14:54 -0400)
IkiWiki/Plugin/passwordauth.pm

index e0e8e51df2141feff7fa1285e843e881cac55684..68aaf808f5c91249ceee266ccadd9745cb4f9123 100644 (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"));