[PHP8.1] Fixes passing null to parameter. Added if check Fixes #2223
这个提交包含在:
父节点
0de4769739
当前提交
bfea8f0752
共有 1 个文件被更改,包括 13 次插入 和 11 次删除
|
|
@ -102,17 +102,19 @@ function echoQrbCalcLink($mygrid, $grid, $vucc) {
|
||||||
<td>
|
<td>
|
||||||
<a id="edit_qso" href="javascript:displayQso(<?php echo $row->COL_PRIMARY_KEY; ?>)"><?php echo str_replace("0","Ø",strtoupper($row->COL_CALL)); ?></a>
|
<a id="edit_qso" href="javascript:displayQso(<?php echo $row->COL_PRIMARY_KEY; ?>)"><?php echo str_replace("0","Ø",strtoupper($row->COL_CALL)); ?></a>
|
||||||
<?php
|
<?php
|
||||||
$lotw_hint = '';
|
if ($row->lastupload) {
|
||||||
$diff = (time() - strtotime($row->lastupload)) / 86400;
|
$lotw_hint = '';
|
||||||
if ($diff > 365) {
|
$diff = (time() - strtotime($row->lastupload)) / 86400;
|
||||||
$lotw_hint = ' lotw_info_red';
|
if ($diff > 365) {
|
||||||
} elseif ($diff > 30) {
|
$lotw_hint = ' lotw_info_red';
|
||||||
$lotw_hint = ' lotw_info_orange';
|
} elseif ($diff > 30) {
|
||||||
} elseif ($diff > 7) {
|
$lotw_hint = ' lotw_info_orange';
|
||||||
$lotw_hint = ' lotw_info_yellow';
|
} elseif ($diff > 7) {
|
||||||
}
|
$lotw_hint = ' lotw_info_yellow';
|
||||||
?>
|
}
|
||||||
<?php $timestamp = strtotime($row->lastupload); echo ($row->callsign == '' ? '' : ' <small id="lotw_info" class="badge badge-success'.$lotw_hint.'" data-toggle="tooltip" data-original-title="LoTW User. Last upload was '.date($custom_date_format." H:i", $timestamp).'">L</small>'); ?>
|
$timestamp = strtotime($row->lastupload); echo ($row->callsign == '' ? '' : ' <small id="lotw_info" class="badge badge-success'.$lotw_hint.'" data-toggle="tooltip" data-original-title="LoTW User. Last upload was '.date($custom_date_format." H:i", $timestamp).'">L</small>');
|
||||||
|
}
|
||||||
|
?>
|
||||||
</td>
|
</td>
|
||||||
<?php
|
<?php
|
||||||
|
|
||||||
|
|
|
||||||
正在加载…
在新工单中引用