Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bag pars array to xml #3092

Closed
demortx opened this issue Jun 12, 2020 · 1 comment
Closed

Bag pars array to xml #3092

demortx opened this issue Jun 12, 2020 · 1 comment

Comments

@demortx
Copy link

demortx commented Jun 12, 2020

$output->addChild("$key", htmlspecialchars("$value"));

Hot Fix
if (!is_numeric($key)) {
$output->addChild("$key", htmlspecialchars("$value"));
} else {
$output->addChild("item{$key}", htmlspecialchars("$value"));
}

before
<ORDER_QTY><0>1</0></ORDER_QTY>

after
<ORDER_QTY>< item0>1< /item0 ></ORDER_QTY>

@michalsn
Copy link
Member

Good catch! I suppose not many people use XML format anymore because otherwise, this problem would come sooner.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants