[Templating] added a safeguard when no debugger is available
This commit is contained in:
parent
e1aae4b820
commit
ae7d911bce
|
@ -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;
|
||||
|
|
Reference in New Issue