Fixed issue where sometimes EOH was skipped
这个提交包含在:
父节点
6cc0dea243
当前提交
e0851324ff
共有 2 个文件被更改,包括 11 次插入 和 1 次删除
|
|
@ -144,6 +144,7 @@ class adif extends CI_Controller {
|
|||
break;
|
||||
};
|
||||
|
||||
|
||||
$this->logbook_model->import($record);
|
||||
|
||||
};
|
||||
|
|
|
|||
|
|
@ -25,7 +25,16 @@ class ADIF_Parser
|
|||
|
||||
public function initialize() //this function locates the <EOH>
|
||||
{
|
||||
$pos = stripos($this->data, "<eoh>");
|
||||
|
||||
|
||||
$eoh_upper = stripos($this->data, "<EOH>");
|
||||
|
||||
if($eoh_upper == true) {
|
||||
$pos = stripos($this->data, "<EOH>");;
|
||||
} else {
|
||||
$pos = stripos($this->data, "<eoh>");
|
||||
}
|
||||
|
||||
if($pos == false) //did we find the end of headers?
|
||||
{
|
||||
echo "Error: Adif_Parser Already Initialized or No <EOH> in ADIF File";
|
||||
|
|
|
|||
正在加载…
在新工单中引用