mirror of
https://github.com/wavelog/wavelog.git
synced 2026-03-22 10:24:14 +00:00
Merge pull request #896 from phl0/lotwEmptyGrid
Handle empty grid while LoTW confirmations
This commit is contained in:
@@ -534,7 +534,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'];
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user