Skip to content

Commit 04f5b42

Browse files
committed
update the isSMTPConnected() method to also check for a false value
1 parent a577705 commit 04f5b42

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

system/Email/Email.php

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2292,6 +2292,8 @@ protected function setArchiveValues(): array
22922292
*/
22932293
protected function isSMTPConnected(): bool
22942294
{
2295-
return $this->SMTPConnect !== null && get_debug_type($this->SMTPConnect) !== 'resource (closed)';
2295+
return $this->SMTPConnect !== null
2296+
&& $this->SMTPConnect !== false
2297+
&& get_debug_type($this->SMTPConnect) !== 'resource (closed)';
22962298
}
22972299
}

0 commit comments

Comments
 (0)