Skip to content

Commit

Permalink
[Config] made a condition more explicit
Browse files Browse the repository at this point in the history
  • Loading branch information
fabpot committed Mar 13, 2014
1 parent 5368066 commit cbc2f9f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Symfony/Component/Config/Util/XmlUtils.php
Expand Up @@ -132,7 +132,7 @@ public static function convertDomElementToArray(\DomElement $element, $checkPref
$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;
}
Expand Down

0 comments on commit cbc2f9f

Please sign in to comment.