Skip to content

Commit

Permalink
Correction Button Helper
Browse files Browse the repository at this point in the history
  • Loading branch information
valentin-claras committed Mar 25, 2014
1 parent 290005c commit 6405a9c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/MyCLabs/MUIH/Bridge/ZendViewHelper/Button.php
Original file line number Diff line number Diff line change
Expand Up @@ -38,12 +38,12 @@ public function __toString()
*/
public function button($content, $type=UIButton::TYPE_DEFAULT, $icon=null)
{
$this->uiElement = new UIButton($content, $type);

if ($icon !== null) {
$this->prependIcon($icon);
}

$this->uiElement = new UIButton($content, $type);

return $this;
}

Expand Down

0 comments on commit 6405a9c

Please sign in to comment.