Merge pull request #2198 from int2001/lotw_grid

Take Grid from confirmation also if length is the same
This commit is contained in:
Joerg (DJ7NT)
2025-07-28 07:38:09 +02:00
committed by GitHub

View File

@@ -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'];
}
}