Skip to content

Commit a0b2258

Browse files
committed
Refactoring.
1 parent cc32ab3 commit a0b2258

File tree

2 files changed

+6
-2
lines changed

2 files changed

+6
-2
lines changed

Changelog.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,3 +17,7 @@ __*Why "v3.0.0" instead of "v1.0.0?"*__ Because the linker is intended for use w
1717
[2021.05.01; Bug-fix; Maikuolan]: Log truncation not being calculated properly; Fixed.
1818

1919
[2021.05.22; Security; Maikuolan]: Increasing PHPMailer version constraints from ^6.2 to ^6.4.1 due to CVE-2020-36326.
20+
21+
### v3.1.3
22+
23+
[2021.05.28; Maikuolan]: Performed some minor refactoring.

src/Linker.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
* License: GNU/GPLv2
99
* @see LICENSE.txt
1010
*
11-
* This file: PHPMailer-phpMussel linker (last modified: 2021.05.01).
11+
* This file: PHPMailer-phpMussel linker (last modified: 2021.05.28).
1212
*/
1313

1414
namespace phpMussel\PHPMailer;
@@ -74,7 +74,7 @@ public function __construct(\phpMussel\Core\Loader &$Loader)
7474
$this->Loader->Events->addHandler('writeToPHPMailerEventLog', function (string $Data): bool {
7575
/** Guard. */
7676
if (
77-
!$this->Loader->Configuration['phpmailer']['event_log'] ||
77+
$this->Loader->Configuration['phpmailer']['event_log'] === '' ||
7878
!($EventLog = $this->Loader->buildPath($this->Loader->Configuration['phpmailer']['event_log']))
7979
) {
8080
return false;

0 commit comments

Comments
 (0)