Fixed:
- PHPUnit\Framework\Error\Notice: Undefined index: language in /.../src/Util/EMailer/MailBuilder.php on line 122
This commit is contained in:
parent
a7651fa1d5
commit
5fe428d3e4
|
@ -119,7 +119,7 @@ abstract class MailBuilder
|
||||||
{
|
{
|
||||||
$this->recipientUid = $user['uid'] ?? 0;
|
$this->recipientUid = $user['uid'] ?? 0;
|
||||||
try {
|
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) {
|
} catch (Exception $e) {
|
||||||
$this->logger->warning('cannot use language.', ['user' => $user, 'exception' => $e]);
|
$this->logger->warning('cannot use language.', ['user' => $user, 'exception' => $e]);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue
Block a user