Skip to content

Commit

Permalink
Fix parsing of UNB segment
Browse files Browse the repository at this point in the history
  • Loading branch information
sabas committed Dec 20, 2016
1 parent 68f0648 commit 5b005a4
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/EDI/Parser.php
Original file line number Diff line number Diff line change
Expand Up @@ -119,8 +119,8 @@ public function parse($file2)
unset($file2[$x]);
break;
case "UNB":
$line=$this->splitSegment($line);
if (!$this->unbChecked) {
$line=$this->splitSegment($line);
$this->analyseUNB($line[1]);
}
break;
Expand Down Expand Up @@ -191,7 +191,7 @@ public function analyseUNA($line)

/**
* Read UNA's characters definition
* @param string $line : UNB definition line (without UNB tag). Example : :+.? '
* @param string $line : UNB definition line (without UNB tag). Example UNOA:2
*/
public function analyseUNB($encoding)
{
Expand Down

0 comments on commit 5b005a4

Please sign in to comment.