Skip to content

Commit

Permalink
Merge pull request #83 from TheLalaMan/feature/fix-false-error-with-r…
Browse files Browse the repository at this point in the history
…ecipientaddress-as-array

#77: Fix a false error when using recipientAddress as array
  • Loading branch information
Bastian Waidelich committed Oct 19, 2018
2 parents 4e55a9d + 9088d6e commit 5df8e93
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Classes/Finishers/EmailFinisher.php
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ class EmailFinisher extends AbstractFinisher
{
const FORMAT_PLAINTEXT = 'plaintext';
const FORMAT_HTML = 'html';

/**
* @var Service
* @Flow\Inject
Expand Down Expand Up @@ -109,7 +109,7 @@ protected function executeInternal()
if ($recipientAddress === null) {
throw new FinisherException('The option "recipientAddress" must be set for the EmailFinisher.', 1327060200);
}
if (is_array($recipientAddress) && $recipientName !== '') {
if (is_array($recipientAddress) && !empty($recipientName)) {
throw new FinisherException('The option "recipientName" cannot be used with multiple recipients in the EmailFinisher.', 1483365977);
}
if ($senderAddress === null) {
Expand Down

0 comments on commit 5df8e93

Please sign in to comment.