Skip to content

Commit

Permalink
Merge pull request #6 from HaykoKoryun/patch-1
Browse files Browse the repository at this point in the history
fixed label wrapping
  • Loading branch information
LRotherfield committed Nov 12, 2014
2 parents a05af72 + 6764a13 commit b9fbc2e
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion Nibble/NibbleForms/Field/Checkbox.php
Expand Up @@ -19,7 +19,7 @@ public function returnField($form_name, $name, $value = '')

return array(
'messages' => !empty($this->custom_error) && !empty($this->error) ? $this->custom_error : $this->error,
'label' => $this->label == false ? false : sprintf('<label class="%s">%s</p>', $class, $this->label),
'label' => $this->label == false ? false : sprintf('<label class="%s">%s</label>', $class, $this->label),
'field' => $field,
'html' => $this->html
);
Expand Down
2 changes: 1 addition & 1 deletion Nibble/NibbleForms/Field/Radio.php
Expand Up @@ -20,7 +20,7 @@ public function returnField($form_name, $name, $value = '')

return array(
'messages' => !empty($this->custom_error) && !empty($this->error) ? $this->custom_error : $this->error,
'label' => $this->label == false ? false : sprintf('<label class="%s">%s</p>', $class, $this->label),
'label' => $this->label == false ? false : sprintf('<label class="%s">%s</label>', $class, $this->label),
'field' => $field,
'html' => $this->html
);
Expand Down

0 comments on commit b9fbc2e

Please sign in to comment.