mirror of
https://github.com/twigphp/Twig.git
synced 2026-09-11 18:06:46 +00:00
Fixed notice in Twig_Error::guessTemplateLine
This commit is contained in:
Regular → Executable
+1
-1
@@ -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;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user