diff --git a/forms/CheckboxField.php b/forms/CheckboxField.php index 498e461ff..68e3537f3 100755 --- a/forms/CheckboxField.php +++ b/forms/CheckboxField.php @@ -47,7 +47,7 @@ class CheckboxField extends FormField { } else { extract($this->getXMLValues(array( 'Name', 'Field', 'Title', 'Message', 'MessageType' )), EXTR_SKIP); - $messageBlock = isset($Message) ? "$Message" : ''; + $messageBlock = empty($Message) ? '' : "$Message"; $Type = $this->XML_val('Type'); $extraClass = $this->XML_val('extraClass'); return <<createTag('input', $attributes); } } -?> \ No newline at end of file +?>