We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 594112d commit a1b539cCopy full SHA for a1b539c
src/EDI/Encoder.php
@@ -85,6 +85,9 @@ public function encodeSegment($row)
85
if (!is_array($row[$i])) {
86
$elm = $this->escapeValue($row[$i]);
87
} else {
88
+ if (count($row[$i]) == 1 && is_array(reset($row[$i]))) {
89
+ $row[$i] = array_pop($row[$i]);
90
+ }
91
foreach ($row[$i] as &$temp) {
92
$temp = $this->escapeValue($temp);
93
}
src/EDI/Parser.php
@@ -389,4 +389,4 @@ public function getMessageDirectory()
389
{
390
return $this->messageDirectory;
391
392
-}
+}
0 commit comments