Adjusted debugoutput
这个提交包含在:
父节点
635d6e51f4
当前提交
f21d862c3e
共有 1 个文件被更改,包括 2 次插入 和 1 次删除
|
|
@ -2701,13 +2701,14 @@ class Logbook_model extends CI_Model {
|
|||
}
|
||||
|
||||
function lotw_last_qsl_date($user_id) {
|
||||
log_message("error","last QSL for User ".$user_id);
|
||||
$sql="SELECT MAX(COALESCE(COL_LOTW_QSLRDATE, '1900-01-01 00:00:00')) MAXDATE, ".$this->config->item('table_name').".station_id
|
||||
FROM ".$this->config->item('table_name')." INNER JOIN station_profile ON (".$this->config->item('table_name').".station_id = station_profile.station_id)
|
||||
WHERE station_profile.user_id=6 and COL_LOTW_QSLRDATE is not null";
|
||||
$query = $this->db->query($sql);
|
||||
$row = $query->row();
|
||||
|
||||
log_message("error","last QSL for User ".$user_id." was ".$row->MAXDATE);
|
||||
|
||||
if (isset($row)) {
|
||||
return $row->MAXDATE;
|
||||
}
|
||||
|
|
|
|||
正在加载…
在新工单中引用