Skip to content

Commit

Permalink
Fallback for non style found in class
Browse files Browse the repository at this point in the history
  • Loading branch information
ajfranzoia committed Apr 26, 2014
1 parent 594298e commit 53f587b
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions View/Helper/Bs3FormHelper.php
Original file line number Diff line number Diff line change
Expand Up @@ -740,12 +740,10 @@ protected function _detectFormStyle($options) {
elseif (strpos($options['class'], 'form-inline') !== false) {
$formStyle = 'inline';
}
} else {
$formStyle = 'default';
}
}

$this->_formStyle = $formStyle;
$this->_formStyle = empty($formStyle) ? 'default' : $formStyle;
unset($options['formStyle']);
return $options;
}
Expand Down

0 comments on commit 53f587b

Please sign in to comment.