Fix tests

This commit is contained in:
Romain Neutron
2012-07-27 13:19:10 +02:00
parent 9f11445265
commit cc4bffe88d
2 changed files with 44 additions and 40 deletions

View File

@@ -150,8 +150,8 @@ class databox_subdefsStructure implements IteratorAggregate
. 'subdef[@name="' . $name . '"]'
);
if ($nodes->length > 0) {
$node = $nodes->item(0);
for($i = 0; $i < $nodes->length; $i++) {
$node = $nodes->item($i);
$parent = $node->parentNode;
$parent->removeChild($node);
}