1
0
mirror of https://github.com/phpbb/phpbb.git synced 2025-07-30 21:40:43 +02:00

[ticket/12205] Do not display 0 for empty integers when show_novalue is off

PHPBB3-12205
This commit is contained in:
Joas Schilling
2014-02-25 18:24:45 +01:00
parent 823dca737f
commit ffbc7ccb64
2 changed files with 43 additions and 1 deletions

View File

@@ -532,7 +532,7 @@ class custom_profile
switch ($this->profile_types[$field_type])
{
case 'int':
if ($value === '' && !$ident_ary['data']['field_show_novalue'])
if (($value === '' || $value === null) && !$ident_ary['data']['field_show_novalue'])
{
return NULL;
}