From dee54c3fdfe0b275cf9c492432845b1ac7be8f71 Mon Sep 17 00:00:00 2001 From: int2001 Date: Mon, 4 Mar 2024 07:14:35 +0000 Subject: [PATCH] Set dxcluster_maxage and decont as well if not given --- application/controllers/Dxcluster.php | 4 ++-- application/views/bandmap/index.php | 2 +- application/views/bandmap/list.php | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/application/controllers/Dxcluster.php b/application/controllers/Dxcluster.php index 0e399cbf7..3a642256c 100644 --- a/application/controllers/Dxcluster.php +++ b/application/controllers/Dxcluster.php @@ -13,10 +13,10 @@ class Dxcluster extends CI_Controller { function spots($band,$age = '', $de = '') { if ($age == '') { - $age = $this->optionslib->get_option('dxcluster_maxage'); + $age = $this->optionslib->get_option('dxcluster_maxage') ?? 60; } if ($de == '') { - $de = $this->optionslib->get_option('dxcluster_decont'); + $de = $this->optionslib->get_option('dxcluster_decont') ?? 'EU'; } $calls_found=$this->dxcluster_model->dxc_spotlist($band, $age, $de); header('Content-Type: application/json'); diff --git a/application/views/bandmap/index.php b/application/views/bandmap/index.php index 52e07442f..2c14b09d7 100644 --- a/application/views/bandmap/index.php +++ b/application/views/bandmap/index.php @@ -1,6 +1,6 @@ diff --git a/application/views/bandmap/list.php b/application/views/bandmap/list.php index 9ae7c0e09..9aa51c18f 100644 --- a/application/views/bandmap/list.php +++ b/application/views/bandmap/list.php @@ -1,7 +1,7 @@