catch empty values

This commit is contained in:
HB9HIL
2024-11-13 00:16:20 +01:00
parent fefc7798ae
commit d39ef6cfb1

View File

@@ -147,7 +147,7 @@ class Cabrilloformat {
}
if ($grid_export == true) {
$returnstring .= substr($qso->station_gridsquare, 0, 4) ." ";
$returnstring .= substr($qso->station_gridsquare, 0, 4) ?? '' ." ";
}
if ($qso->COL_STX_STRING != "") {
@@ -161,7 +161,7 @@ class Cabrilloformat {
}
if ($grid_export == true) {
$returnstring .= substr($qso->COL_GRIDSQUARE, 0, 4) ." ";
$returnstring .= substr($qso->COL_GRIDSQUARE, 0, 4) ?? '' ." ";
}
if ($qso->COL_SRX_STRING != "") {