Skip to content

Commit

Permalink
fix bug
Browse files Browse the repository at this point in the history
  • Loading branch information
xiaozi authored Sep 29, 2016
1 parent cb8ffba commit 1293b22
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/BTorrent/Tree.php
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,8 @@ public function __construct(array $arr, $root = '/')
}
$branch = &$d;
}
$branch->addFile(new File($filename, $item['length']));
$file = new File($filename, $item['length']);
$branch->addFile($file);
}
$this->struct = $tree;
}
Expand All @@ -25,4 +26,4 @@ public function jsonSerialize()
{
return $this->struct;
}
}
}

0 comments on commit 1293b22

Please sign in to comment.