Skip to content

Commit 6405a9c

Browse files
Correction Button Helper
1 parent 290005c commit 6405a9c

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/MyCLabs/MUIH/Bridge/ZendViewHelper/Button.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -38,12 +38,12 @@ public function __toString()
3838
*/
3939
public function button($content, $type=UIButton::TYPE_DEFAULT, $icon=null)
4040
{
41+
$this->uiElement = new UIButton($content, $type);
42+
4143
if ($icon !== null) {
4244
$this->prependIcon($icon);
4345
}
4446

45-
$this->uiElement = new UIButton($content, $type);
46-
4747
return $this;
4848
}
4949

0 commit comments

Comments
 (0)