Skip to content

Commit 5b005a4

Browse files
committed
Fix parsing of UNB segment
1 parent 68f0648 commit 5b005a4

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/EDI/Parser.php

+2-2
Original file line numberDiff line numberDiff line change
@@ -119,8 +119,8 @@ public function parse($file2)
119119
unset($file2[$x]);
120120
break;
121121
case "UNB":
122+
$line=$this->splitSegment($line);
122123
if (!$this->unbChecked) {
123-
$line=$this->splitSegment($line);
124124
$this->analyseUNB($line[1]);
125125
}
126126
break;
@@ -191,7 +191,7 @@ public function analyseUNA($line)
191191

192192
/**
193193
* Read UNA's characters definition
194-
* @param string $line : UNB definition line (without UNB tag). Example : :+.? '
194+
* @param string $line : UNB definition line (without UNB tag). Example UNOA:2
195195
*/
196196
public function analyseUNB($encoding)
197197
{

0 commit comments

Comments
 (0)