The question I'm asking myself now is : how could I get $trace['line'] is not set...
authorNami-Doc <karp@hotmail.fr>
Sat, 31 Mar 2012 19:59:45 +0000 (22:59 +0300)
committerNami-Doc <karp@hotmail.fr>
Sat, 31 Mar 2012 19:59:45 +0000 (22:59 +0300)
lib/Twig/Error.php

index 45d164a..b945706 100755 (executable)
@@ -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;
                 }
             }