From: Nami-Doc Date: Sat, 31 Mar 2012 19:59:45 +0000 (+0300) Subject: The question I'm asking myself now is : how could I get $trace['line'] is not set... X-Git-Url: http://git.silmor.de/gitweb/?a=commitdiff_plain;h=27ffef077a8baf62b727de690b64a147ffe2bae5;p=web%2Fkonrad%2Ftwig.git 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 --- 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; } }