Skip to content

Commit

Permalink
like this?
Browse files Browse the repository at this point in the history
  • Loading branch information
Simn committed Dec 16, 2024
1 parent cdaab36 commit f5bd65c
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions std/php/_std/haxe/xml/Parser.hx
Original file line number Diff line number Diff line change
Expand Up @@ -363,8 +363,7 @@ class Parser {
}
if (p != start)
buf = buf.addSub(str, start, p - start);
var str = buf.toString();
if (str.length > 0 || nsubs == 0) {
if (str != "" || nsubs == 0) {
addChild(Xml.createPCData(buf));
}
return p;
Expand Down

0 comments on commit f5bd65c

Please sign in to comment.