diff --git a/forms/FormField.php b/forms/FormField.php index 293f4c5ea..293eef758 100644 --- a/forms/FormField.php +++ b/forms/FormField.php @@ -511,7 +511,7 @@ HTML; * @return string */ public function name_to_label($fieldName) { - if(strpos('.', $fieldName) !== false) { + if(strpos($fieldName, '.') !== false) { $parts = explode('.', $fieldName); $label = $parts[count($parts)-2] . ' ' . $parts[count($parts)-1]; } else {