File tree Expand file tree Collapse file tree 1 file changed +7
-5
lines changed Expand file tree Collapse file tree 1 file changed +7
-5
lines changed Original file line number Diff line number Diff line change 8
8
* License: GNU/GPLv2
9
9
* @see LICENSE.txt
10
10
*
11
- * This file: PHPMailer-phpMussel linker (last modified: 2020.07.02 ).
11
+ * This file: PHPMailer-phpMussel linker (last modified: 2020.07.12 ).
12
12
*/
13
13
14
14
namespace phpMussel \PHPMailer ;
@@ -21,12 +21,12 @@ class Linker
21
21
private $ Loader ;
22
22
23
23
/**
24
- * @var string The path to the core asset files.
24
+ * @var string The path to the linker asset files.
25
25
*/
26
26
private $ AssetsPath = __DIR__ . DIRECTORY_SEPARATOR . '.. ' . DIRECTORY_SEPARATOR . 'assets ' . DIRECTORY_SEPARATOR ;
27
27
28
28
/**
29
- * @var string The path to the core L10N files.
29
+ * @var string The path to the linker L10N files.
30
30
*/
31
31
private $ L10NPath = __DIR__ . DIRECTORY_SEPARATOR . '.. ' . DIRECTORY_SEPARATOR . 'l10n ' . DIRECTORY_SEPARATOR ;
32
32
@@ -224,8 +224,10 @@ public function __invoke(string $NotUsed, array $Data): bool
224
224
$ Mail ->AltBody = $ AltBody ;
225
225
226
226
/** Process attachments. */
227
- foreach ($ Attachments as $ Attachment ) {
228
- $ Mail ->addAttachment ($ Attachment );
227
+ if (is_array ($ Attachments )) {
228
+ foreach ($ Attachments as $ Attachment ) {
229
+ $ Mail ->addAttachment ($ Attachment );
230
+ }
229
231
}
230
232
231
233
/** Send it! */
You can’t perform that action at this time.
0 commit comments