- PHPUnit\Framework\Error\Notice:  Undefined index: language in /.../src/Util/EMailer/MailBuilder.php on line 122
This commit is contained in:
Roland Häder 2022-06-21 13:32:04 +02:00
parent a7651fa1d5
commit 5fe428d3e4
Signed by: roland
GPG key ID: C82EDE5DDFA0BA77

View file

@ -119,7 +119,7 @@ abstract class MailBuilder
{
$this->recipientUid = $user['uid'] ?? 0;
try {
$this->l10n = $user['language'] ? $this->l10n->withLang($user['language']) : $this->l10n;
$this->l10n = isset($user['language']) ? $this->l10n->withLang($user['language']) : $this->l10n;
} catch (Exception $e) {
$this->logger->warning('cannot use language.', ['user' => $user, 'exception' => $e]);
}