[Config] made a condition more explicit
This commit is contained in:
parent
5368066a5a
commit
cbc2f9fd36
@ -132,7 +132,7 @@ class XmlUtils
|
|||||||
$nodeValue = false;
|
$nodeValue = false;
|
||||||
foreach ($element->childNodes as $node) {
|
foreach ($element->childNodes as $node) {
|
||||||
if ($node instanceof \DOMText) {
|
if ($node instanceof \DOMText) {
|
||||||
if (strlen(trim($node->nodeValue)) > 0) {
|
if ('' !== trim($node->nodeValue)) {
|
||||||
$nodeValue = trim($node->nodeValue);
|
$nodeValue = trim($node->nodeValue);
|
||||||
$empty = false;
|
$empty = false;
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user