Skip to content

Commit

Permalink
[FIX]hm-smtp.php: Initialize to avoid undefined variable warning
Browse files Browse the repository at this point in the history
  • Loading branch information
Baraka24 authored and josaphatim committed Sep 24, 2024
1 parent 25107b5 commit 6e7caa1
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions modules/smtp/hm-smtp.php
Original file line number Diff line number Diff line change
Expand Up @@ -408,8 +408,8 @@ function authenticate($username, $password, $mech) {
break;
}
}
if (!$result) {

if (!isset($result)) {
$result = 'An error occurred authenticating to the SMTP server';
$res = $this->get_response();
if ($this->compare_response($res, '235') == 0) {
Expand Down

0 comments on commit 6e7caa1

Please sign in to comment.