Skip to content
This repository has been archived by the owner on Apr 6, 2020. It is now read-only.

Commit

Permalink
only add container if more than 1 element is added
Browse files Browse the repository at this point in the history
  • Loading branch information
dmolineus committed Jun 16, 2014
1 parent 817a3ef commit 21f8a8d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Netzmacht/Bootstrap/Helper/Buttons.php
Original file line number Diff line number Diff line change
Expand Up @@ -362,7 +362,7 @@ public function generate()
{
if($this->addContainer === null)
{
$this->addContainer = ($this->count() > 0);
$this->addContainer = ($this->count() > 1);
}

$this->containerClass = 'btn-' . $this->getContainerType();
Expand Down

0 comments on commit 21f8a8d

Please sign in to comment.