[Gridsquare Activators] Only show results if band has been posted

pull/1445/head
Peter Goodhall 2022-03-31 22:21:39 +01:00
rodzic 65486c4974
commit c9ab2fcff2
1 zmienionych plików z 8 dodań i 5 usunięć

Wyświetl plik

@ -70,17 +70,20 @@
$vucc_grids[$line->call] = $line->vucc_grids;
}
}
if ($activators_array) {
if( $this->input->post('band') != NULL) {
if ($activators_array) {
$result = write_activators($activators_array, $vucc_grids, $custom_date_format, $this->input->post('band'), $this->input->post('leogeo'));
}
else {
echo '<div class="alert alert-danger" role="alert"><a href="#" class="close" data-dismiss="alert" aria-label="close">&times;</a>Nothing found!</div>';
$result = write_activators($activators_array, $vucc_grids, $custom_date_format, $this->input->post('band'), $this->input->post('leogeo'));
}
else {
echo '<div class="alert alert-danger" role="alert"><a href="#" class="close" data-dismiss="alert" aria-label="close">&times;</a>Nothing found!</div>';
}
}
?>
</div>
<?php
function write_activators($activators_array, $vucc_grids, $custom_date_format, $band, $leogeo) {