Skip to content

Commit

Permalink
fixup! Migrate to Symfony Mailer
Browse files Browse the repository at this point in the history
  • Loading branch information
miaulalala committed Jan 26, 2023
1 parent 7f0ac5a commit eae8353
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions apps/dav/lib/CalDAV/Schedule/IMipPlugin.php
Original file line number Diff line number Diff line change
Expand Up @@ -174,9 +174,10 @@ public function schedule(Message $iTipMessage) {

$recipientName = $iTipMessage->recipientName ?: null;

/** @var Parameter|string|null $senderName */
$senderName = $iTipMessage->senderName ?: null;
if($iTipMessage->senderName instanceof Parameter) {
$senderName = $iTipMessage->senderName->getValue() ?? null;
if($senderName instanceof Parameter) {
$senderName = $senderName->getValue() ?? null;
}

if ($senderName === null || empty(trim($senderName))) {
Expand Down

0 comments on commit eae8353

Please sign in to comment.