[Templating] added a safeguard when no debugger is available

This commit is contained in:
Fabien Potencier 2010-01-30 12:26:55 +01:00
parent e1aae4b820
commit ae7d911bce

View File

@ -85,10 +85,13 @@ class FilesystemLoader extends Loader
} }
} }
if ($this->debugger)
{
foreach ($logs as $log) foreach ($logs as $log)
{ {
$this->debugger->log($log); $this->debugger->log($log);
} }
}
return false; return false;
} }