BUGFIX: Fixed order of arguments.

git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/sapphire/trunk@64109 467b73ca-7a2a-4603-9d3b-597d59a354a9
This commit is contained in:
Hayden Smith 2008-10-12 22:21:35 +00:00
parent c26ccdffa0
commit 8a1ab89b84

View File

@ -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 {