From 178b38940b6bc08adafaaa887723a47549e9d64a Mon Sep 17 00:00:00 2001 From: Fabien Potencier Date: Mon, 28 Jun 2010 12:12:31 +0200 Subject: [PATCH] fixed typo --- lib/Twig/Node.php | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/lib/Twig/Node.php b/lib/Twig/Node.php index 9aa4d34..58ce258 100644 --- a/lib/Twig/Node.php +++ b/lib/Twig/Node.php @@ -130,7 +130,7 @@ class Twig_Node implements Twig_NodeInterface, ArrayAccess, Countable, IteratorA */ public function offsetExists($name) { - return $this->attributes[$name]; + return array_key_exists($name, $this->attributes); } /** -- 1.7.2.5