diff --git a/application/controllers/Labels.php b/application/controllers/Labels.php index 977e5a6b..a6826bf3 100644 --- a/application/controllers/Labels.php +++ b/application/controllers/Labels.php @@ -216,7 +216,7 @@ class Labels extends CI_Controller { } // New begin function pretty_sat_mode($sat_mode) { - return(strlen($sat_mode) == 2 ? (strtoupper($sat_mode[0]).'/'.strtoupper($sat_mode[1])) : strtoupper($sat_mode)); + return(strlen($sat_mode ?? '') == 2 ? (strtoupper($sat_mode[0]).'/'.strtoupper($sat_mode[1])) : strtoupper($sat_mode ?? '')); } function finalizeData($pdf, $current_callsign, &$preliminaryData, $qso_per_label) {