Fixed bug where exceptions were not being checked when typing in a live qso sometimes
这个提交包含在:
父节点
0739790943
当前提交
6cc0dea243
共有 2 个文件被更改,包括 34 次插入 和 17 次删除
|
|
@ -8,6 +8,10 @@ Website: [http://www.cloudlog.co.uk](http://www.cloudlog.co.uk)
|
||||||
|
|
||||||
* PHP (Version 7 or higher is recommended) & MySQL
|
* PHP (Version 7 or higher is recommended) & MySQL
|
||||||
|
|
||||||
|
You will also needthe following PHP modules installed
|
||||||
|
|
||||||
|
php-curl, php-mbstrings, php-xml
|
||||||
|
|
||||||
## Versions
|
## Versions
|
||||||
|
|
||||||
* Master - Current working copy
|
* Master - Current working copy
|
||||||
|
|
|
||||||
|
|
@ -1215,6 +1215,18 @@ class Logbook_model extends CI_Model {
|
||||||
public function dxcc_lookup($call, $date){
|
public function dxcc_lookup($call, $date){
|
||||||
$len = strlen($call);
|
$len = strlen($call);
|
||||||
|
|
||||||
|
$this->db->where('call', $call);
|
||||||
|
$this->db->where('CURDATE() between start and end');
|
||||||
|
|
||||||
|
$query = $this->db->get('dxcc_exceptions');
|
||||||
|
|
||||||
|
|
||||||
|
if ($query->num_rows() > 0){
|
||||||
|
|
||||||
|
$row = $query->row_array();
|
||||||
|
|
||||||
|
return $row;
|
||||||
|
} else {
|
||||||
// query the table, removing a character from the right until a match
|
// query the table, removing a character from the right until a match
|
||||||
for ($i = $len; $i > 0; $i--){
|
for ($i = $len; $i > 0; $i--){
|
||||||
//printf("searching for %s\n", substr($call, 0, $i));
|
//printf("searching for %s\n", substr($call, 0, $i));
|
||||||
|
|
@ -1236,6 +1248,7 @@ class Logbook_model extends CI_Model {
|
||||||
return $row;
|
return $row;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
return array("Not Found", "Not Found");
|
return array("Not Found", "Not Found");
|
||||||
}
|
}
|
||||||
|
|
|
||||||
正在加载…
在新工单中引用