From d0ae0294c043e82e1bd811ef41b2c951fd3c6b18 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Gr=C3=A9goire=20Pineau?= Date: Fri, 23 Mar 2012 23:59:21 +0100 Subject: [PATCH] Fixed notice in Twig_Error::guessTemplateLine --- lib/Twig/Error.php | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) mode change 100644 => 100755 lib/Twig/Error.php diff --git a/lib/Twig/Error.php b/lib/Twig/Error.php old mode 100644 new mode 100755 index 77418f4..c1b9f32 --- a/lib/Twig/Error.php +++ b/lib/Twig/Error.php @@ -164,7 +164,7 @@ class Twig_Error extends Exception protected function guessTemplateLine($trace) { foreach ($trace['object']->getDebugInfo() as $codeLine => $templateLine) { - if ($codeLine <= $trace['line']) { + if (isset($trace['line']) && $codeLine <= $trace['line']) { return $templateLine; } } -- 1.7.2.5