Pushed fix for empty result

This commit is contained in:
Andreas Kristiansen
2025-11-19 14:35:39 +01:00
parent 48573247fb
commit 1fde0674fd
2 changed files with 2 additions and 5 deletions

View File

@@ -184,7 +184,7 @@ class Awards extends CI_Controller {
}
$dxcclist = $this->dxcc->fetchdxcc($postdata);
if ($dxcclist[0]->adif == "0") {
if ($dxcclist && $dxcclist[0]->adif == "0") {
unset($dxcclist[0]);
}
$data['dxcc_array'] = $this->dxcc->get_dxcc_array($dxcclist, $bands, $postdata);

View File

@@ -210,9 +210,6 @@
</select>
</div>
</div>
<div class="mb-4 text-center">
<button id="button2id" type="reset" name="button2id" class="btn btn-sm btn-warning"><?= __("Reset"); ?></button>
</div>
</div>
</form>
@@ -353,7 +350,7 @@
</div>';
} else {
echo '<div class="alert alert-danger" role="alert">' . __("Nothing found!") . '</div>';
echo '<div class="alert alert-danger" role="alert">' . __("No results found for your search criteria. Please try again.") . '</div>';
}
?>
</div>