diff options
author | Joas Schilling <nickvergessen@gmx.de> | 2014-02-25 18:24:45 +0100 |
---|---|---|
committer | Joas Schilling <nickvergessen@gmx.de> | 2014-02-25 18:24:45 +0100 |
commit | ffbc7ccb64f28c0932f4ec09a94379e968224945 (patch) | |
tree | c394f9f5115d8952ec502278bf091945220fd09e /phpBB/includes | |
parent | 823dca737f2dad54a646d0032712e43e452f9b88 (diff) | |
download | forums-ffbc7ccb64f28c0932f4ec09a94379e968224945.tar forums-ffbc7ccb64f28c0932f4ec09a94379e968224945.tar.gz forums-ffbc7ccb64f28c0932f4ec09a94379e968224945.tar.bz2 forums-ffbc7ccb64f28c0932f4ec09a94379e968224945.tar.xz forums-ffbc7ccb64f28c0932f4ec09a94379e968224945.zip |
[ticket/12205] Do not display 0 for empty integers when show_novalue is off
PHPBB3-12205
Diffstat (limited to 'phpBB/includes')
-rw-r--r-- | phpBB/includes/functions_profile_fields.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/phpBB/includes/functions_profile_fields.php b/phpBB/includes/functions_profile_fields.php index 8573533c2c..a2c0656ca4 100644 --- a/phpBB/includes/functions_profile_fields.php +++ b/phpBB/includes/functions_profile_fields.php @@ -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; } |