Fixed Notice error
This commit is contained in:
parent
fc49c34d06
commit
a9977dc5d1
1 changed files with 1 additions and 1 deletions
|
|
@ -104,7 +104,7 @@ class Application extends b8\Application
|
|||
$this->response->setContent($view->render());
|
||||
}
|
||||
|
||||
if ($this->response->hasLayout() && $this->controller->layout) {
|
||||
if ($this->response->hasLayout() && $this->controller && $this->controller->layout) {
|
||||
$this->setLayoutVariables($this->controller->layout);
|
||||
|
||||
$this->controller->layout->content = $this->response->getContent();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue