mirror of
https://github.com/wavelog/wavelog.git
synced 2026-03-22 10:24:14 +00:00
Revert my latest unknown prefix change
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user