aboutsummaryrefslogtreecommitdiffstats
path: root/phpBB/phpbb/profilefields
diff options
context:
space:
mode:
authorJoas Schilling <nickvergessen@gmx.de>2015-01-20 22:56:33 +0100
committerJoas Schilling <nickvergessen@gmx.de>2015-01-20 22:56:33 +0100
commitd1bff80dd1a1edb69d71cee0363f013c21eb36a6 (patch)
treea4da4deb0e4bc48991a3ee6d1365ceeadf228fad /phpBB/phpbb/profilefields
parentf02dc44a23e60c451552a52db2ddd38183c1e387 (diff)
downloadforums-d1bff80dd1a1edb69d71cee0363f013c21eb36a6.tar
forums-d1bff80dd1a1edb69d71cee0363f013c21eb36a6.tar.gz
forums-d1bff80dd1a1edb69d71cee0363f013c21eb36a6.tar.bz2
forums-d1bff80dd1a1edb69d71cee0363f013c21eb36a6.tar.xz
forums-d1bff80dd1a1edb69d71cee0363f013c21eb36a6.zip
[ticket/13528] Return correct translation instead of is_set()
PHPBB3-13528
Diffstat (limited to 'phpBB/phpbb/profilefields')
-rw-r--r--phpBB/phpbb/profilefields/type/type_bool.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/phpBB/phpbb/profilefields/type/type_bool.php b/phpBB/phpbb/profilefields/type/type_bool.php
index 77eedcbd04..f6f3f17a6c 100644
--- a/phpBB/phpbb/profilefields/type/type_bool.php
+++ b/phpBB/phpbb/profilefields/type/type_bool.php
@@ -173,7 +173,7 @@ class type_bool extends type_base
}
else
{
- return $this->lang_helper->is_set($field_id, $lang_id, $field_value + 1);
+ return $this->lang_helper->is_set($field_id, $lang_id, $field_value + 1) ? $this->lang_helper->get($field_id, $lang_id, $field_value + 1) : null;
}
}