From b4059c59de6c246c3f40864fde851d2bb76e6fb7 Mon Sep 17 00:00:00 2001 From: Aren Sargsyan Date: Tue, 23 Jun 2026 19:16:24 +0400 Subject: [PATCH] NSD-17429 Fix Blesta module: resolve false 'NOT VERIFIED' status and broken Resend Verification Email button --- namesilo.php | 15 ++++++++++----- 1 file changed, 10 insertions(+), 5 deletions(-) diff --git a/namesilo.php b/namesilo.php index 24b22ef..7290a6f 100644 --- a/namesilo.php +++ b/namesilo.php @@ -3281,13 +3281,18 @@ private function manageSettings( $registrant_email = $registrant_info->response()->contact->email; $registrant_verification = $domains->registrantVerificationStatus()->response(true); - if ($registrant_verification) { - if (!is_array($registrant_verification['email'])) { - $registrant_verification['email'] = [$registrant_verification['email']]; + if ($registrant_verification && !empty($registrant_verification['email'])) { + $emails = $registrant_verification['email']; + if (isset($emails['email_address'])) { + $emails = [$emails]; } - foreach ($registrant_verification['email'] as $key => $registrant) { - if (isset($registrant['email_address']) && $registrant['email_address'] == $registrant_email) { + foreach ($emails as $registrant) { + if ( + isset($registrant['email_address']) + && strcasecmp((string) $registrant['email_address'], (string) $registrant_email) === 0 + ) { $vars->registrant_verification_info = $registrant; + break; } } }