[Pkg-owncloud-commits] [php-sabre-vobject] 314/341: Fix a cloning problem.

David Prévot taffit at moszumanska.debian.org
Tue Aug 11 13:36:00 UTC 2015


This is an automated email from the git hooks/post-receive script.

taffit pushed a commit to branch master
in repository php-sabre-vobject.

commit eaba96e76bbbb7f27cadb266a666fa8d82a1719a
Author: Evert Pot <me at evertpot.com>
Date:   Wed Jul 8 15:46:14 2015 -0400

    Fix a cloning problem.
---
 lib/Component.php | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)

diff --git a/lib/Component.php b/lib/Component.php
index 7370bb2..46cc80a 100644
--- a/lib/Component.php
+++ b/lib/Component.php
@@ -544,7 +544,10 @@ class Component extends Node {
 
         foreach ($this->children as $childName => $childGroup) {
             foreach ($childGroup as $key => $child) {
-                $this->children[$childName][$key] = clone $child;
+                $clonedChild = clone $child;
+                $clonedChild->parent = $this;
+                $clonedChild->root = $this->root;
+                $this->children[$childName][$key] = $clonedChild;
             }
         }
 

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-owncloud/php-sabre-vobject.git



More information about the Pkg-owncloud-commits mailing list