From 8a1ab89b84cc5517776f08baa9a770e601995ec0 Mon Sep 17 00:00:00 2001 From: Hayden Smith Date: Sun, 12 Oct 2008 22:21:35 +0000 Subject: [PATCH] BUGFIX: Fixed order of arguments. git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/sapphire/trunk@64109 467b73ca-7a2a-4603-9d3b-597d59a354a9 --- forms/FormField.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 {