[Distances Worked] Bugfix for two locations, where one didn't have any QSOs on selected band.

This commit is contained in:
Andreas
2022-01-16 17:44:53 +01:00
parent 6d5acdfd11
commit 952f6080a6

View File

@@ -37,12 +37,16 @@ class Distances_model extends CI_Model
else {
$this->db->where('col_band', $postdata['band']);
}
$this->db->where('station_id', $station_id);
$dataarrayata = $this->db->get($this->config->item('table_name'));
$queryresult = $this->db->get($this->config->item('table_name'));
$temp = $this->plot($dataarrayata->result_array(), $gridsquare, $measurement_base);
if ($queryresult->result_array()) {
$temp = $this->plot($queryresult->result_array(), $gridsquare, $measurement_base);
$result = $this->mergeresult($result, $temp);
}
$result = $this->mergeresult($result, $temp);
}
}