mirror of
https://github.com/friendica/friendica
synced 2025-05-05 09:04:09 +02:00
Ensure IEMail::getMessage returns a string
This commit is contained in:
parent
2a4985cd46
commit
a147038c2e
2 changed files with 3 additions and 3 deletions
|
@ -110,12 +110,12 @@ class Email implements IEmail
|
|||
/**
|
||||
* {@inheritDoc}
|
||||
*/
|
||||
public function getMessage(bool $plain = false)
|
||||
public function getMessage(bool $plain = false): string
|
||||
{
|
||||
if ($plain) {
|
||||
return $this->msgText;
|
||||
} else {
|
||||
return $this->msgHtml;
|
||||
return $this->msgHtml ?? '';
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue