diff --git a/kernel/classes/ezcontentobject.php b/kernel/classes/ezcontentobject.php index 61082367654..f085230c3a0 100644 --- a/kernel/classes/ezcontentobject.php +++ b/kernel/classes/ezcontentobject.php @@ -1985,7 +1985,7 @@ function removeThis( $nodeID = null ) { $db = eZDB::instance(); $db->begin(); - foreach ( $additionalNodes as $additionalNode ) + foreach ( $nodes as $additionalNode ) { if ( $additionalNode->attribute( 'node_id' ) != $node->attribute( 'main_node_id' ) ) {