Error fix

This commit is contained in:
Andreas Kristiansen
2025-07-19 23:23:58 +02:00
parent cadaa51462
commit 245db5c3a3

View File

@@ -4,8 +4,8 @@ class Eqsl_images extends CI_Model {
function get_image($qso_id) {
$this->db->where('qso_id', $qso_id);
$query = $this->db->get('eQSL_images');
$query = $this->db->get('eQSL_images');
$row = $query->row();
if(isset($row)) {
@@ -44,7 +44,7 @@ class Eqsl_images extends CI_Model {
function eqsl_qso_list() {
$this->load->model('logbooks_model');
$logbooks_locations_array = $this->logbooks_model->list_logbook_relationships($this->session->userdata('active_station_logbook'));
$this->db->select('COL_PRIMARY_KEY, qso_id, COL_CALL, COL_MODE, , COL_SUBMODE, COL_TIME_ON, COL_BAND, COL_PROP_MODE, COL_SAT_NAME, COL_QSLMSG_RCVD, COL_EQSL_QSLRDATE, image_file');
$this->db->select('COL_PRIMARY_KEY, qso_id, COL_CALL, COL_MODE, COL_SUBMODE, COL_TIME_ON, COL_BAND, COL_PROP_MODE, COL_SAT_NAME, COL_QSLMSG_RCVD, COL_EQSL_QSLRDATE, image_file');
$this->db->join($this->config->item('table_name'), 'qso_id = COL_PRIMARY_KEY', 'left outer');
$this->db->join('station_profile', $this->config->item('table_name').'.station_id = station_profile.station_id', 'left outer');
$this->db->where_in('station_profile.station_id', $logbooks_locations_array);
@@ -52,7 +52,7 @@ class Eqsl_images extends CI_Model {
return $this->db->get('eQSL_images');
}
// return path of eQsl file : u=url / p=real path
// return path of eQsl file : u=url / p=real path
function get_imagePath($pathorurl='u', $user_id = null) {
// test if new folder directory option is enabled