mirror of
https://github.com/wavelog/wavelog.git
synced 2026-03-22 10:24:14 +00:00
PHP8.3 safety
This commit is contained in:
@@ -8,21 +8,25 @@ class Genfunctions
|
||||
function addQslToQuery($postdata) {
|
||||
$sql = '';
|
||||
$qsl = array();
|
||||
if ($postdata['qrz'] != NULL || $postdata['lotw'] != NULL || $postdata['qsl'] != NULL || $postdata['eqsl'] != NULL) {
|
||||
if ( (($postdata['clublog'] ?? '') != '') ||
|
||||
(($postdata['qrz'] ?? '') != '') ||
|
||||
(($postdata['lotw'] ?? '') != '') ||
|
||||
(($postdata['qsl'] ?? '') != '') ||
|
||||
(($postdata['eqsl'] ?? '') != '') ) {
|
||||
$sql .= ' and (';
|
||||
if ($postdata['qsl'] != NULL) {
|
||||
if (($postdata['qsl'] ?? '') != '') {
|
||||
array_push($qsl, "col_qsl_rcvd = 'Y'");
|
||||
}
|
||||
if ($postdata['lotw'] != NULL) {
|
||||
if (($postdata['lotw'] ?? '') != '') {
|
||||
array_push($qsl, "col_lotw_qsl_rcvd = 'Y'");
|
||||
}
|
||||
if ($postdata['eqsl'] != NULL) {
|
||||
if (($postdata['eqsl'] ?? '') != '') {
|
||||
array_push($qsl, "col_eqsl_qsl_rcvd = 'Y'");
|
||||
}
|
||||
if ($postdata['qrz'] != NULL) {
|
||||
if (($postdata['qrz'] ?? '') != '') {
|
||||
array_push($qsl, "COL_QRZCOM_QSO_DOWNLOAD_STATUS = 'Y'");
|
||||
}
|
||||
if ($postdata['clublog'] != NULL) {
|
||||
if (($postdata['clublog'] ?? '') != '') {
|
||||
array_push($qsl, "COL_CLUBLOG_QSO_DOWNLOAD_STATUS = 'Y'");
|
||||
}
|
||||
if (count($qsl) > 0) {
|
||||
@@ -53,19 +57,19 @@ class Genfunctions
|
||||
function gen_qsl_from_postdata($postdata) {
|
||||
$qsl='';
|
||||
if ($postdata['confirmed'] != NULL) {
|
||||
if ($postdata['qsl'] != NULL ) {
|
||||
if (($postdata['qsl'] ?? '')!= '' ) {
|
||||
$qsl .= "Q";
|
||||
}
|
||||
if ($postdata['lotw'] != NULL ) {
|
||||
if (($postdata['lotw'] ?? '')!= '' ) {
|
||||
$qsl .= "L";
|
||||
}
|
||||
if ($postdata['eqsl'] != NULL ) {
|
||||
if (($postdata['eqsl'] ?? '')!= '' ) {
|
||||
$qsl .= "E";
|
||||
}
|
||||
if ($postdata['clublog'] != NULL ) {
|
||||
if (($postdata['clublog'] ?? '')!= '' ) {
|
||||
$qsl .= "C";
|
||||
}
|
||||
if ($postdata['qrz'] != NULL ) {
|
||||
if (($postdata['qrz'] ?? '')!= '' ) {
|
||||
$qsl .= "Z";
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user