aboutsummaryrefslogtreecommitdiffstats
path: root/phpBB/includes/acp/acp_profile.php
diff options
context:
space:
mode:
authorChris Smith <toonarmy@phpbb.com>2009-10-07 14:54:10 +0000
committerChris Smith <toonarmy@phpbb.com>2009-10-07 14:54:10 +0000
commit457a195797d562d93c5eed46f5e0ab34c7efdfde (patch)
tree85491ba092335a8678e419462dd3393465bd9fdb /phpBB/includes/acp/acp_profile.php
parentaef6352a35d3024a55ff7397e3f185df98982046 (diff)
downloadforums-457a195797d562d93c5eed46f5e0ab34c7efdfde.tar
forums-457a195797d562d93c5eed46f5e0ab34c7efdfde.tar.gz
forums-457a195797d562d93c5eed46f5e0ab34c7efdfde.tar.bz2
forums-457a195797d562d93c5eed46f5e0ab34c7efdfde.tar.xz
forums-457a195797d562d93c5eed46f5e0ab34c7efdfde.zip
Properly fix #40925
git-svn-id: file:///svn/phpbb/branches/phpBB-3_0_0@10216 89ea8834-ac86-4346-8a33-228a782c2dd0
Diffstat (limited to 'phpBB/includes/acp/acp_profile.php')
-rw-r--r--phpBB/includes/acp/acp_profile.php8
1 files changed, 8 insertions, 0 deletions
diff --git a/phpBB/includes/acp/acp_profile.php b/phpBB/includes/acp/acp_profile.php
index 1b0ec4b5d5..fc08c7e8e8 100644
--- a/phpBB/includes/acp/acp_profile.php
+++ b/phpBB/includes/acp/acp_profile.php
@@ -509,6 +509,14 @@ class acp_profile
// Get the number of options if this key is 'field_maxlen'
$var = request_var('field_default_value', 0);
}*/
+ else if ($field_type == FIELD_INT && $key == 'field_default_value')
+ {
+ // Permit an empty string
+ if (request_var('field_default_value', '') === '')
+ {
+ $var = '';
+ }
+ }
$cp->vars[$key] = $var;
}