aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--phpBB/includes/acp/acp_profile.php13
1 files changed, 3 insertions, 10 deletions
diff --git a/phpBB/includes/acp/acp_profile.php b/phpBB/includes/acp/acp_profile.php
index cfe982d9ae..dbece81e09 100644
--- a/phpBB/includes/acp/acp_profile.php
+++ b/phpBB/includes/acp/acp_profile.php
@@ -620,20 +620,13 @@ class acp_profile
foreach ($key_ary as $key)
{
- if (!isset($cp->vars[$key]))
+ if (!isset($_REQUEST[$key]))
{
- if (!isset($_REQUEST[$key]))
- {
- $var = false;
- }
- else
- {
- $_new_key_ary[$key] = (is_array($_REQUEST[$key])) ? request_var($key, array(''), true) : request_var($key, '', true);
- }
+ $var = false;
}
else
{
- $_new_key_ary[$key] = $cp->vars[$key];
+ $_new_key_ary[$key] = (is_array($_REQUEST[$key])) ? request_var($key, array(''), true) : request_var($key, '', true);
}
}