aboutsummaryrefslogtreecommitdiffstats
path: root/phpBB/phpbb/profilefields
diff options
context:
space:
mode:
authorStanislav Atanasov <lucifer@anavaro.com>2014-07-10 06:12:13 +0300
committerStanislav Atanasov <lucifer@anavaro.com>2014-07-10 11:46:00 +0300
commit57bbb4548b2761c01fc14345982e00be1ea27af1 (patch)
treeec9114498943784a2fed38cd36dc893913be28d1 /phpBB/phpbb/profilefields
parentd5fd1ecfc8c2898d57135cccb06b62e9c28f1ce2 (diff)
downloadforums-57bbb4548b2761c01fc14345982e00be1ea27af1.tar
forums-57bbb4548b2761c01fc14345982e00be1ea27af1.tar.gz
forums-57bbb4548b2761c01fc14345982e00be1ea27af1.tar.bz2
forums-57bbb4548b2761c01fc14345982e00be1ea27af1.tar.xz
forums-57bbb4548b2761c01fc14345982e00be1ea27af1.zip
[ticket/12793] String '0' does not display for string profile fields
See https://github.com/phpbb/phpbb/pull/2647#discussion_r14503051 PHPBB3-12793
Diffstat (limited to 'phpBB/phpbb/profilefields')
-rw-r--r--phpBB/phpbb/profilefields/type/type_string_common.php6
1 files changed, 3 insertions, 3 deletions
diff --git a/phpBB/phpbb/profilefields/type/type_string_common.php b/phpBB/phpbb/profilefields/type/type_string_common.php
index c2b951b6c9..0842675a11 100644
--- a/phpBB/phpbb/profilefields/type/type_string_common.php
+++ b/phpBB/phpbb/profilefields/type/type_string_common.php
@@ -98,7 +98,7 @@ abstract class type_string_common extends type_base
*/
public function get_profile_value($field_value, $field_data)
{
- if (!$field_value && !$field_data['field_show_novalue'])
+ if (($field_value === null || $field_value === '') && !$field_data['field_show_novalue'])
{
return null;
}
@@ -114,7 +114,7 @@ abstract class type_string_common extends type_base
*/
public function get_profile_value_raw($field_value, $field_data)
{
- if (!$field_value && !$field_data['field_show_novalue'])
+ if (($field_value === null || $field_value === '') && !$field_data['field_show_novalue'])
{
return null;
}
@@ -127,7 +127,7 @@ abstract class type_string_common extends type_base
*/
public function get_profile_contact_value($field_value, $field_data)
{
- if (!$field_value && !$field_data['field_show_novalue'])
+ if (($field_value === null || $field_value === '') && !$field_data['field_show_novalue'])
{
return null;
}