aboutsummaryrefslogtreecommitdiffstats
path: root/phpBB/includes
diff options
context:
space:
mode:
authorNils Adermann <naderman@naderman.de>2014-02-25 19:48:54 +0100
committerNils Adermann <naderman@naderman.de>2014-02-25 19:48:54 +0100
commit05d921fbbc6f60cebd18152c1413932c36dbe900 (patch)
treec394f9f5115d8952ec502278bf091945220fd09e /phpBB/includes
parent823dca737f2dad54a646d0032712e43e452f9b88 (diff)
parentffbc7ccb64f28c0932f4ec09a94379e968224945 (diff)
downloadforums-05d921fbbc6f60cebd18152c1413932c36dbe900.tar
forums-05d921fbbc6f60cebd18152c1413932c36dbe900.tar.gz
forums-05d921fbbc6f60cebd18152c1413932c36dbe900.tar.bz2
forums-05d921fbbc6f60cebd18152c1413932c36dbe900.tar.xz
forums-05d921fbbc6f60cebd18152c1413932c36dbe900.zip
Merge pull request #2059 from nickvergessen/ticket/12205
[ticket/12205] Do not display 0 for empty integers when show_novalue is off
Diffstat (limited to 'phpBB/includes')
-rw-r--r--phpBB/includes/functions_profile_fields.php2
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;
}