mirror of
https://github.com/wavelog/wavelog.git
synced 2026-03-22 18:27:16 +00:00
Added COL_HRDLOG_QSO_UPLOAD_STATUS != 'Y' to the Update-query
This commit is contained in:
@@ -107,7 +107,7 @@ class Hrdlog_model extends CI_Model {
|
||||
foreach ($qsos->result() as $qso) {
|
||||
$mark_them[]=$qso->COL_PRIMARY_KEY;
|
||||
}
|
||||
$sql="update ".$this->config->item('table_name')." set COL_HRDLOG_QSO_UPLOAD_DATE='".date("Y-m-d H:i:s", strtotime("now"))."', COL_HRDLOG_QSO_UPLOAD_STATUS='Y' where col_primary_key in (".implode(',', array_values($mark_them)).") and station_id=".$station_id;
|
||||
$sql="update ".$this->config->item('table_name')." set COL_HRDLOG_QSO_UPLOAD_DATE='".date("Y-m-d H:i:s", strtotime("now"))."', COL_HRDLOG_QSO_UPLOAD_STATUS='Y' where COL_HRDLOG_QSO_UPLOAD_STATUS != 'Y' and col_primary_key in (".implode(',', array_values($mark_them)).") and station_id=".$station_id;
|
||||
$query = $this->db->query($sql);
|
||||
return $this->db->affected_rows();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user