diff --git a/FormBuilder.php b/FormBuilder.php index 3dfa472..59221fe 100644 --- a/FormBuilder.php +++ b/FormBuilder.php @@ -176,14 +176,15 @@ class FormBuilder { * @param array $options * @return string */ - public function label($name, $value='', $options = array()) + public function label($name, $value=null, $options = array()) { $this->labels[] = $name; $options = $this->html->attributes($options); - if (!$value) { - $value = ucfirst(str_replace('_', ' ', $name)) . ': '; + if (is_null($value)) + { + $value = ucfirst(str_replace('_', ' ', $name)); } return '';