[Config] made a condition more explicit

This commit is contained in:
Fabien Potencier 2014-03-13 06:07:25 +01:00
parent 5368066a5a
commit cbc2f9fd36

View File

@ -132,7 +132,7 @@ class XmlUtils
$nodeValue = false;
foreach ($element->childNodes as $node) {
if ($node instanceof \DOMText) {
if (strlen(trim($node->nodeValue)) > 0) {
if ('' !== trim($node->nodeValue)) {
$nodeValue = trim($node->nodeValue);
$empty = false;
}