From 27ffef077a8baf62b727de690b64a147ffe2bae5 Mon Sep 17 00:00:00 2001 From: Nami-Doc Date: Sat, 31 Mar 2012 22:59:45 +0300 Subject: [PATCH] The question I'm asking myself now is : how could I get $trace['line'] is not set if there's a check before the <= ? anyway, fixed --- lib/Twig/Error.php | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/lib/Twig/Error.php b/lib/Twig/Error.php index 45d164a..b945706 100755 --- a/lib/Twig/Error.php +++ b/lib/Twig/Error.php @@ -165,7 +165,7 @@ class Twig_Error extends Exception { if (isset($trace['line'])) { foreach ($trace['object']->getDebugInfo() as $codeLine => $templateLine) { - if (isset($trace['line']) && $codeLine <= $trace['line']) { + if ($codeLine <= $trace['line']) { return $templateLine; } } -- 1.7.2.5