Don't show SAT-Col for IOTAs when SAT wasn't chosen

This commit is contained in:
int2001
2025-03-07 17:03:51 +00:00
parent 9fbdaad3e5
commit 161638c209
3 changed files with 7 additions and 0 deletions

View File

@@ -858,6 +858,7 @@ class Awards extends CI_Controller {
$iotalist = $this->iota->fetchIota($postdata, $location_list);
$data['iota_array'] = $this->iota->get_iota_array($iotalist, $bands, $postdata, $location_list);
$data['iota_summary'] = $this->iota->get_iota_summary($bands, $postdata, $location_list);
$data['posted_band']=$postdata['band'];
// Render Page
$data['page_title'] = sprintf(__("Awards - %s"), __("IOTA (Island On The Air)"));

View File

@@ -7,6 +7,9 @@ class IOTA extends CI_Model {
function get_iota_array($iotaArray, $bands, $postdata, $location_list) {
foreach ($bands as $band) { // Looping through bands and iota to generate the array needed for display
if (($postdata['band'] != 'SAT') && ($band == 'SAT')) {
continue;
}
foreach ($iotaArray as $iota) {
$iotaMatrix[$iota->tag]['prefix'] = $iota->prefix;
$iotaMatrix[$iota->tag]['name'] = $iota->name;

View File

@@ -199,6 +199,9 @@
echo ' <td>' . __("Deleted") . '</td>';
foreach($bands as $band) {
if (($posted_band != 'SAT') && ($band == 'SAT')) {
continue;
}
echo '<td>' . $band . '</td>';
}
echo '</tr>