Page Menu
Home
Phorge
Search
Configure Global Search
Log In
Files
F2627507
D25208.1731987186.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Award Token
Flag For Later
Advanced/Developer...
View Handle
View Hovercard
Size
842 B
Referenced Files
None
Subscribers
None
D25208.1731987186.diff
View Options
diff --git a/src/applications/people/mail/PhabricatorPeopleWelcomeMailEngine.php b/src/applications/people/mail/PhabricatorPeopleWelcomeMailEngine.php
--- a/src/applications/people/mail/PhabricatorPeopleWelcomeMailEngine.php
+++ b/src/applications/people/mail/PhabricatorPeopleWelcomeMailEngine.php
@@ -118,14 +118,14 @@
$recipient = $this->getRecipient();
$custom_body = $this->getWelcomeMessage();
- if (strlen($custom_body)) {
+ if (phutil_nonempty_string($custom_body)) {
return $this->newRemarkupText($custom_body);
}
$default_body = PhabricatorAuthMessage::loadMessageText(
$recipient,
PhabricatorAuthWelcomeMailMessageType::MESSAGEKEY);
- if (strlen($default_body)) {
+ if (phutil_nonempty_string($default_body)) {
return $this->newRemarkupText($default_body);
}
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Tue, Nov 19, 03:33 (17 h, 10 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
977074
Default Alt Text
D25208.1731987186.diff (842 B)
Attached To
Mode
D25208: Fix PHP 8.1 "strlen(null)" exceptions which block rendering user page after creation with Welcome Email enabled
Attached
Detach File
Event Timeline
Log In to Comment