From: Grégoire Pineau Date: Fri, 23 Mar 2012 22:59:21 +0000 (+0100) Subject: Fixed notice in Twig_Error::guessTemplateLine X-Git-Url: http://git.silmor.de/gitweb/?a=commitdiff_plain;h=d0ae0294c043e82e1bd811ef41b2c951fd3c6b18;p=web%2Fkonrad%2Ftwig.git Fixed notice in Twig_Error::guessTemplateLine --- 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; } }