Exception handling

Fixes #5482
This commit is contained in:
Samuel Georges 2021-03-24 17:04:28 +11:00
parent 675a90daa1
commit 7688215f84

View File

@ -82,6 +82,10 @@ class MailManager
*/
public function addContentToMailer($message, $code, $data, $plainOnly = false)
{
if (!is_string($code)) {
return false;
}
if (isset($this->templateCache[$code])) {
$template = $this->templateCache[$code];
}