Added exception for /B Suffix at Call (shouldn't resolve to china)

This commit is contained in:
int2001
2025-01-23 09:59:25 +00:00
parent 8da3608d7f
commit 6be1991a90
2 changed files with 5 additions and 5 deletions

View File

@@ -4718,7 +4718,7 @@ class Logbook_model extends CI_Model {
*/
public function check_dxcc_table($call, $date) {
$csadditions = '/^X$|^D$|^T$|^P$|^R$|^A$|^M$/';
$csadditions = '/^X$|^D$|^T$|^P$|^R$|^B$|^A$|^M$/';
$dxcc_exceptions = $this->db->select('`entity`, `adif`, `cqz`, `cont`')
->where('`call`', $call)
@@ -4809,7 +4809,7 @@ class Logbook_model extends CI_Model {
public function dxcc_lookup($call, $date) {
$csadditions = '/^X$|^D$|^T$|^P$|^R$|^A$|^M$|^LH$/';
$csadditions = '/^X$|^D$|^T$|^P$|^R$|^B$|^A$|^M$|^LH$/';
$dxcc_exceptions = $this->db->select('`entity`, `adif`, `cqz`,`cont`')
->where('`call`', $call)
@@ -4918,7 +4918,7 @@ class Logbook_model extends CI_Model {
$c = '';
$lidadditions = '/^QRP$|^LGT$/';
$csadditions = '/^X$|^D$|^T$|^P$|^R$|^A$|^M$|^LH$/';
$csadditions = '/^X$|^D$|^T$|^P$|^R$|^B$|^A$|^M$|^LH$/';
$noneadditions = '/^MM$|^AM$/';
# First check if the call is in the proper format, A/B/C where A and C

View File

@@ -13,7 +13,7 @@ class Dxcc {
public function dxcc_lookup($call, $date) {
$csadditions = '/^P$|^R$|^A$|^M$/';
$csadditions = '/^P$|^R$|^A$|^B$|^M$/';
$CI =& get_instance();
if (array_key_exists($call, $this->dxccexceptions)) {
@@ -91,7 +91,7 @@ class Dxcc {
$c = '';
$lidadditions = '/^QRP$|^LGT$/';
$csadditions = '/^P$|^R$|^A$|^M$|^LH$/';
$csadditions = '/^P$|^R$|^B$|^A$|^M$|^LH$/';
$noneadditions = '/^MM$|^AM$/';
# First check if the call is in the proper format, A/B/C where A and C