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

This commit is contained in:
Nami-Doc
2012-03-31 22:59:45 +03:00
parent 36618fe101
commit 27ffef077a
+1 -1
View File
@@ -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;
}
}