From 643114be06b0bce153ec190b4295efffd6fdfd65 Mon Sep 17 00:00:00 2001 From: fabien Date: Fri, 8 Jan 2010 15:01:33 +0000 Subject: [PATCH] fixed Twig_Node_Set git-svn-id: http://svn.twig-project.org/trunk@219 93ef8e89-cb99-4229-a87c-7fa0fa45744b --- lib/Twig/Node/Set.php | 19 ++++++++++++++++++- 1 files changed, 18 insertions(+), 1 deletions(-) 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); -- 1.7.2.5