kopia lustrzana https://github.com/magicbug/Cloudlog
Fixed issue where sometimes EOH was skipped
rodzic
6cc0dea243
commit
e0851324ff
|
@ -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";
|
||||
|
|
Ładowanie…
Reference in New Issue