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:
@@ -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;
|
||||
}
|
||||
|
Reference in New Issue
Block a user