From: fabien Date: Fri, 8 Jan 2010 15:01:33 +0000 (+0000) Subject: fixed Twig_Node_Set X-Git-Url: http://git.silmor.de/gitweb/?a=commitdiff_plain;h=643114be06b0bce153ec190b4295efffd6fdfd65;p=web%2Fkonrad%2Ftwig.git fixed Twig_Node_Set git-svn-id: http://svn.twig-project.org/trunk@219 93ef8e89-cb99-4229-a87c-7fa0fa45744b --- diff --git a/lib/Twig/Node/Set.php b/lib/Twig/Node/Set.php index 767f567..144f315 100644 --- a/lib/Twig/Node/Set.php +++ b/lib/Twig/Node/Set.php @@ -1,6 +1,6 @@ isMultitarget) + { + return $this->values; + } + else + { + return array($this->values); + } + } + + public function setNodes(array $nodes) + { + $this->values = $this->isMultitarget ? $nodes : $nodes[0]; + } + public function compile($compiler) { $compiler->addDebugInfo($this);