mirror of
https://we.phorge.it/source/phorge.git
synced 2024-11-10 00:42:41 +01:00
Fix "Welcome Mail" check for a message when no message exists
Summary: Fixes T13239. See that task for discussion. Test Plan: Tried to send welcome mail with no "Welcome" message. Maniphest Tasks: T13239 Differential Revision: https://secure.phabricator.com/D20001
This commit is contained in:
parent
755c40221d
commit
be8b7c9eba
1 changed files with 1 additions and 1 deletions
|
@ -51,7 +51,7 @@ final class PhabricatorPeopleWelcomeController
|
|||
$default_message = PhabricatorAuthMessage::loadMessage(
|
||||
$admin,
|
||||
PhabricatorAuthWelcomeMailMessageType::MESSAGEKEY);
|
||||
if (strlen($default_message->getMessageText())) {
|
||||
if ($default_message && strlen($default_message->getMessageText())) {
|
||||
$message_instructions = pht(
|
||||
'The email will identify you as the sender. You may optionally '.
|
||||
'replace the [[ %s | default custom mail body ]] with different text '.
|
||||
|
|
Loading…
Reference in a new issue