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

这个提交包含在:
Peter Goodhall 2022-03-31 22:21:39 +01:00
父节点 65486c4974
当前提交 c9ab2fcff2

查看文件

@ -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) {