Revert my latest unknown prefix change

This commit is contained in:
Andreas Kristiansen
2026-01-26 10:35:42 +01:00
parent 75d998486a
commit 6f01b34ee5
2 changed files with 0 additions and 13 deletions

View File

@@ -927,13 +927,6 @@ class Calltester extends CI_Controller {
'Date' => $date = date('Y-m-d', time())
);
$testarray[] = array(
'Callsign' => 'RU9CK/Z1',
'Country' => 'Asiatic Russia',
'Adif' => 15,
'Date' => $date = date('Y-m-d', time())
);
set_time_limit(3600);
// Starting clock time in seconds

View File

@@ -167,12 +167,6 @@ class Dxcc {
$c = substr($c, 1); # Remove the / at the beginning
};
if (preg_match('/^([A-Z]\d|\d[A-Z])$/', ($c ?? ''))) { # If suffix consists of exactly 2 chars (letter+digit or digit+letter) - ignore if prefix isn't known at all
if (!array_key_exists($c, $this->dxcc)) {
$c = null;
}
}
# In some cases when there is no part A but B and C, and C is longer than 2
# letters, it happens that $a and $b get the values that $b and $c should
# have. This often happens with liddish callsign-additions like /QRP and