mirror of
https://github.com/wavelog/wavelog.git
synced 2026-03-22 10:24:14 +00:00
Don't show SAT-Col for IOTAs when SAT wasn't chosen
This commit is contained in:
@@ -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)"));
|
||||
|
||||
@@ -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;
|
||||
|
||||
@@ -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>
|
||||
|
||||
Reference in New Issue
Block a user