Skip to content

Commit

Permalink
Update View.php
Browse files Browse the repository at this point in the history
$content isn't being used in the first statement
  • Loading branch information
Isaac Askew committed Jun 3, 2015
1 parent aa0907c commit 062fe08
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions src/View/View.php
Expand Up @@ -493,11 +493,10 @@ public function renderLayout($content, $layout = null)
return $this->Blocks->get('content');
}

if (empty($content)) {
$content = $this->Blocks->get('content');
} else {
$this->Blocks->set('content', $content);
if (!empty($content)) {
$this->Blocks->set('content', $content);
}

$this->dispatchEvent('View.beforeLayout', [$layoutFileName]);

$title = $this->Blocks->get('title');
Expand Down

0 comments on commit 062fe08

Please sign in to comment.