Skip to content
This repository was archived by the owner on Apr 5, 2023. It is now read-only.

Commit bb501d1

Browse files
authored
Merge pull request #48 from boryn/patch-4
Check if passed tags/params array is not empty
2 parents 4fad805 + 0d032e1 commit bb501d1

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/SendinBlueTransport.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -218,13 +218,13 @@ protected function buildData($message)
218218
continue 2;
219219

220220
case 'tags':
221-
if (is_array($val)) {
221+
if (is_array($val) && !empty($val)) {
222222
$smtpEmail->setTags($val);
223223
}
224224
continue 2;
225225

226226
case 'params':
227-
if (is_array($val)) {
227+
if (is_array($val) && !empty($val)) {
228228
$smtpEmail->setParams($val);
229229
}
230230
continue 2;

0 commit comments

Comments
 (0)