Fix check for whether there is a translation for a group name

This commit is contained in:
Toby Zerner 2015-10-31 18:20:55 +10:30
parent 119d1721e0
commit 953f81176b

View File

@ -69,9 +69,9 @@ class GroupSerializer extends AbstractSerializer
*/
private function translateGroupName($name)
{
$translation = $this->translator->trans('core.group.'.strtolower($name));
$translation = $this->translator->trans($key = 'core.group.'.strtolower($name));
if ($translation !== $name) {
if ($translation !== $key) {
return $translation;
}