From 21f8a8dfad4a09e3a8d3e7dd923a24453165bc19 Mon Sep 17 00:00:00 2001 From: David Molineus Date: Mon, 16 Jun 2014 10:37:05 +0200 Subject: [PATCH] only add container if more than 1 element is added --- src/Netzmacht/Bootstrap/Helper/Buttons.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Netzmacht/Bootstrap/Helper/Buttons.php b/src/Netzmacht/Bootstrap/Helper/Buttons.php index 818cbcf..7ceb832 100644 --- a/src/Netzmacht/Bootstrap/Helper/Buttons.php +++ b/src/Netzmacht/Bootstrap/Helper/Buttons.php @@ -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();