From 6e7caa12d0d1751eb847bb52f113af5fa7a3ef30 Mon Sep 17 00:00:00 2001 From: Baraka Kinywa Date: Sat, 21 Sep 2024 17:56:36 +0200 Subject: [PATCH] [FIX]hm-smtp.php: Initialize to avoid undefined variable warning --- modules/smtp/hm-smtp.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/modules/smtp/hm-smtp.php b/modules/smtp/hm-smtp.php index 9aab4b00ea..29066092a7 100644 --- a/modules/smtp/hm-smtp.php +++ b/modules/smtp/hm-smtp.php @@ -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) {