[Visitor] Fixed issue where grid map wasnt functional

pull/3092/head
Peter Goodhall 2024-05-03 16:00:51 +01:00
rodzic c33ce3fdbb
commit c3f8b7be72
2 zmienionych plików z 6 dodań i 5 usunięć

Wyświetl plik

@ -248,7 +248,7 @@ class Visitor extends CI_Controller {
// Get Confirmed LoTW & Paper Squares (non VUCC)
$query = $this->gridmap_model->get_band_confirmed('SAT', 'All', 'false', 'true', 'false', 'All', $logbooks_locations_array);
$query = $this->gridmap_model->get_band_confirmed('SAT', 'All', 'true', 'true', 'false', 'false', 'All', $logbooks_locations_array);
if ($query && $query->num_rows() > 0)
@ -284,7 +284,7 @@ class Visitor extends CI_Controller {
}
// Get worked squares
$query = $this->gridmap_model->get_band('SAT', 'All', 'false', 'true', 'false', 'All', $logbooks_locations_array);
$query = $this->gridmap_model->get_band('SAT', 'All', 'false', 'true', 'false', 'false', 'All', $logbooks_locations_array);
if ($query && $query->num_rows() > 0)
{
@ -318,7 +318,7 @@ class Visitor extends CI_Controller {
}
}
$query_vucc = $this->gridmap_model->get_band_worked_vucc_squares('SAT', 'All', 'false', 'true', 'false', 'All', $logbooks_locations_array);
$query_vucc = $this->gridmap_model->get_band_worked_vucc_squares('SAT', 'All', 'false', 'true', 'false', 'false', 'All', $logbooks_locations_array);
if ($query && $query_vucc->num_rows() > 0)
{
@ -341,11 +341,11 @@ class Visitor extends CI_Controller {
array_push($array_grid_4char, $grid_four);
}
}
}
}
}
// Confirmed Squares
$query_vucc = $this->gridmap_model->get_band_confirmed_vucc_squares('SAT', 'All', 'false', 'true', 'false', 'All', $logbooks_locations_array);
$query_vucc = $this->gridmap_model->get_band_confirmed_vucc_squares('SAT', 'All', 'true', 'true', 'false', 'false', 'All', $logbooks_locations_array);
if ($query && $query_vucc->num_rows() > 0)
{

Wyświetl plik

@ -3,6 +3,7 @@
class Gridmap_model extends CI_Model {
function get_band_confirmed($band, $mode, $qsl, $lotw, $eqsl, $qrz, $sat, $logbooks_locations_array = NULL) {
if ($logbooks_locations_array == NULL) {
$CI =& get_instance();
$CI->load->model('logbooks_model');