From d1bff80dd1a1edb69d71cee0363f013c21eb36a6 Mon Sep 17 00:00:00 2001 From: Joas Schilling Date: Tue, 20 Jan 2015 22:56:33 +0100 Subject: [ticket/13528] Return correct translation instead of is_set() PHPBB3-13528 --- phpBB/phpbb/profilefields/type/type_bool.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'phpBB/phpbb/profilefields') 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; } } -- cgit v1.2.1