From 4e6ca0ed77e1384038949fdd6f2468fa7f1d04f2 Mon Sep 17 00:00:00 2001 From: David Bomba Date: Thu, 27 Jul 2023 19:22:33 +1000 Subject: [PATCH] Fixes for migrated user checks --- app/Mail/SupportMessageSent.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/Mail/SupportMessageSent.php b/app/Mail/SupportMessageSent.php index ea8f34f49373..7a230fcf5b6d 100644 --- a/app/Mail/SupportMessageSent.php +++ b/app/Mail/SupportMessageSent.php @@ -67,7 +67,7 @@ class SupportMessageSent extends Mailable $db = str_replace('db-ninja-', '', $company->db); $is_large = $company->is_large ? 'L' : 'S'; $platform = array_key_exists('platform', $this->data) ? $this->data['platform'] : 'U'; - $migrated = strlen($company->company_key) == 32 ? 'M' : ''; + $migrated = ctype_lower(preg_replace('/[0-9]+/', '', $company->company_key)) ? 'M' : ''; $trial = $account->isTrial() ? 'T' : ''; $plan = str_replace('_', ' ', $plan);