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

pull/1377/head
Andreas 2022-01-16 17:44:53 +01:00
rodzic 6d5acdfd11
commit 952f6080a6
1 zmienionych plików z 7 dodań i 3 usunięć

Wyświetl plik

@ -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);
}
}