[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,9 +85,12 @@ class FilesystemLoader extends Loader
} }
} }
foreach ($logs as $log) if ($this->debugger)
{ {
$this->debugger->log($log); foreach ($logs as $log)
{
$this->debugger->log($log);
}
} }
return false; return false;