Skip to content

Commit 3345a06

Browse files
committed
Merge branch 'master' of github.com:chamilo/chamilo-lms
2 parents 8df3316 + bbe6c67 commit 3345a06

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/CoreBundle/Decorator/MailTransportDecorator.php

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,10 @@ public function fromStrings(#[SensitiveParameter] array $dsns): Transports
2626
{
2727
$dsn = $this->settingsManager->getSetting('mail.mailer_dsn');
2828

29+
if (empty($dsn)) {
30+
$dsn = 'null://null';
31+
}
32+
2933
return new Transports([
3034
$this->inner->fromString($dsn),
3135
]);

0 commit comments

Comments
 (0)