Hopefully catches the dxccFlag null error when looking at QSO details

pull/2979/head
Peter Goodhall 2024-02-19 15:33:58 +00:00
rodzic c26fbf9b41
commit ab90cf9745
1 zmienionych plików z 2 dodań i 2 usunięć

Wyświetl plik

@ -218,7 +218,7 @@
<?php if($row->name != null) { ?>
<tr>
<td><?php echo lang('general_word_country'); ?></td>
<td><?php echo ucwords(strtolower(($row->name)), "- (/"); if ($dxccFlag != null) { echo " ".$dxccFlag; } if ($row->end != null) { echo ' <span class="badge text-bg-danger">'.lang('gen_hamradio_deleted_dxcc').'</span>'; } ?></td>
<td><?php echo ucwords(strtolower(($row->name)), "- (/"); if (isset($dxccFlag)) { echo " ".$dxccFlag; } if ($row->end != null) { echo ' <span class="badge text-bg-danger">'.lang('gen_hamradio_deleted_dxcc').'</span>'; } ?></td>
</tr>
<?php } ?>
@ -427,7 +427,7 @@
$twitter_string = urlencode("Just worked ".$row->COL_CALL." ");
if ($row->COL_DXCC != 0) {
$twitter_string .= urlencode("in ".ucwords(strtolower(($row->COL_COUNTRY)))." ");
if ($dxccFlag != null) {
if (isset($dxccFlag)) {
$twitter_string .= $dxccFlag." ";
}
}