Skip to content

Commit

Permalink
Reset block args only when there's no opened blocks
Browse files Browse the repository at this point in the history
See #32
  • Loading branch information
gmazzap committed Mar 6, 2016
1 parent 44d765f commit 264ae8a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Blocks/Block.php
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ public function close()
}
$args = $this->args;
$this->opened--;
$this->args = [];
$this->opened === 0 and $this->args = [];
array_unshift($args, ob_get_clean());
$block = call_user_func_array($this->callback, $args);

Expand Down

0 comments on commit 264ae8a

Please sign in to comment.