From 68312198e59cd5d9013bad218eda3517186af497 Mon Sep 17 00:00:00 2001 From: int2001 Date: Mon, 28 Jul 2025 03:44:01 +0000 Subject: [PATCH] Takee Grid from confirmation also if length is the same --- application/controllers/Lotw.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/application/controllers/Lotw.php b/application/controllers/Lotw.php index 29ec8ab08..cb1155f19 100644 --- a/application/controllers/Lotw.php +++ b/application/controllers/Lotw.php @@ -550,7 +550,7 @@ class Lotw extends CI_Controller { // Present only if the QSLing station specified a single valid grid square value in its station location uploaded to LoTW. $qsl_gridsquare = ""; if (isset($record['gridsquare'])) { - if (strlen($record['gridsquare']) > strlen($status[2] ?? '') || substr(strtoupper($status[2] ?? ''), 0, 4) != substr(strtoupper($record['gridsquare']), 0, 4)) { + if (strlen($record['gridsquare']) >= strlen($status[2] ?? '') || substr(strtoupper($status[2] ?? ''), 0, 4) != substr(strtoupper($record['gridsquare']), 0, 4)) { $qsl_gridsquare = $record['gridsquare']; } }